R
Rajat
hi,
iam trying to make a query which will return 1 row with n+n column
from 2 rows(same table) with n columns each.
the initial table structure would be like this-
Code
-------------------
date | 12 am | 1 am | 2am | ....... | 11 p
-------------------
& finally the table should be like
Code
-------------------
date | 12 am | 1 am | 2am | ....... | 11 pm | x12am | x1 am | x2am | ....... | x11 pm
-------------------
so basically combining two rows from 1st table to 1 row (in ne
table/or otherwise)...
i am using VB to execute this query.....so i can construct the query i
VB & then execute it....
-edit:-
actually dont care by column names in 2nd table
sub topic:
the main problem is that....sometimes i need few columns from 1 row an
few from another......
for eg -
on 2/1/2006 - need columns 21pm | 22pm | 23pm <- this is 1 row
while on 2/2/2006 - need columns 12 am | 1 am | 2am | 3am | 4am | 5am
<- 2nd row
i need to combine both these rows & display 1 row with only thos
columns....
Trust iam clear.
TI
iam trying to make a query which will return 1 row with n+n column
from 2 rows(same table) with n columns each.
the initial table structure would be like this-
Code
-------------------
date | 12 am | 1 am | 2am | ....... | 11 p
-------------------
& finally the table should be like
Code
-------------------
date | 12 am | 1 am | 2am | ....... | 11 pm | x12am | x1 am | x2am | ....... | x11 pm
-------------------
so basically combining two rows from 1st table to 1 row (in ne
table/or otherwise)...
i am using VB to execute this query.....so i can construct the query i
VB & then execute it....
-edit:-
actually dont care by column names in 2nd table
sub topic:
the main problem is that....sometimes i need few columns from 1 row an
few from another......
for eg -
on 2/1/2006 - need columns 21pm | 22pm | 23pm <- this is 1 row
while on 2/2/2006 - need columns 12 am | 1 am | 2am | 3am | 4am | 5am
<- 2nd row
i need to combine both these rows & display 1 row with only thos
columns....
Trust iam clear.
TI