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 |
Mayur Dhumal
Starting Member
4 Posts |
Posted - 2012-01-10 : 06:42:04
|
Hi guys,I need help in the following:i have tables given below,ID TABLEID ID_SEQ101 1102 2103 3104 4105 5DESCRIPTION TABLEID_SEQ ID_SOC DESCRIPTION1 10 ABC1 20 DEF1 30 GHI1 40 JKL1 50 MNO2 10 ABC2 20 DEF2 30 GHI2 40 JKL2 50 MNOVALUE TABLEID_SOC VALUE DATE TIME10 100 01-01-2011 11:1510 130 01-05-2011 12:0010 160 13-08-2011 13:1420 140 21-06-2-11 14:5620 210 18-05-2011 20:1330 250 17-12-2011 18:4630 310 16-04-2011 09:3440 450 23-04-2011 17:5040 500 30-03-2011 16:3250 760 01-04-2011 01:1050 893 31-12-2011 17:34& i need output to be displayed asID DESCRIPTION1 VALUE DATE TIME ID DESC2 VALUE DATE TIME 101 ABC 100 01-01-2011 11:15 101 DEF 210 18-05-2011 20:13& SO ON FOR OTHER DESCRIPTION102 SAME DATA FORMAT AS ABOVE 103 . i.e I NEED DATA FOR SINGLE ID WITH MANY DIFFERENT DESCRIPTIONS & THEIR VALUES IN A SINGLE ROW AS SHOWN ABOVE.plz help me with this problem to resolvethanx |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
|
Mayur Dhumal
Starting Member
4 Posts |
Posted - 2012-01-10 : 07:02:44
|
hey vishakh16,i m really getting confused with this.can u simplify that example for the above case. |
|
|
|
|
|