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 |
|
ismile
Starting Member
1 Post |
Posted - 2009-07-07 : 08:04:57
|
| Hi I need your valuable helpI have 2 table one have studen number other have student number and non attened date. I would like to insert second table mached values into unattanded dates field side by side into final tablefirst tablestudent no 123second tablestudent no unattanded date1 01.01.20091 03.01.20091 04.01.20093 05.05.20083 06.04.20093 01.01.20092 10.10.20092 20.10.2009final table should be like thisstuden_no un_attandeddays1 01.01.2009,03.01.2009,04.01.20092 10.10.2009,20.10.20093 05.05.2008,06.04.2009,01.01.2009 |
|
|
RickD
Slow But Sure Yak Herding Master
3608 Posts |
Posted - 2009-07-07 : 08:09:56
|
| Have a look at PIVOT in Books Online. |
 |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2009-07-07 : 08:15:47
|
the dates are comma separated value as a single column un_attandeddays ?use this method : concatenate records without UDF KH[spoiler]Time is always against us[/spoiler] |
 |
|
|
|
|
|