Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
vivo
Starting Member
24 Posts |
Posted - 2010-06-02 : 00:39:15
|
| select b.employeeid,a.name,a.department,a.employeeno,payday,wperiod from employee a, bwhere a.id=b.employeeidand payday between '04/07/2010' and '04/16/2010'there are more than one record for each employeeid with different payday and different wperiod.I want to make payday rows as columns . Related wperiod are under each those payday columns.empID ..... 01/01/2010.. 02/01/2010..02/01/2010123 wperiod .. wperiod .. wperiod456 wperiod .. wperiod .. wperiod |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
|
|
|
|
|