Hi Friends,
I am googling from last couple of days to find the answer. Below is the problem which I am trying to solve using SQL Server 05,
Col1-------Col2--------Col3
A ....... 1/1/2008.....Y
A ....... 1/2/2008.....N
B ....... 1/1/2008.....N
B ....... 1/2/2008.....N
C ....... 1/1/2008.....Y
C ....... 1/2/2008.....Y
I am trying to capture a following output in a temporary table,
-------------1/2/2008-------1/2/2008
A ............Y.. ............... N
B............ N.............. ...N
C............ Y.............. ...Y
I am trying to solve this problem but could not able to come out with a correct answer. Any suggestions to crack this are welcome.
Thanks in advance
Regards,
bhulok
I am googling from last couple of days to find the answer. Below is the problem which I am trying to solve using SQL Server 05,
Col1-------Col2--------Col3
A ....... 1/1/2008.....Y
A ....... 1/2/2008.....N
B ....... 1/1/2008.....N
B ....... 1/2/2008.....N
C ....... 1/1/2008.....Y
C ....... 1/2/2008.....Y
I am trying to capture a following output in a temporary table,
-------------1/2/2008-------1/2/2008
A ............Y.. ............... N
B............ N.............. ...N
C............ Y.............. ...Y
I am trying to solve this problem but could not able to come out with a correct answer. Any suggestions to crack this are welcome.
Thanks in advance
Regards,
bhulok
Comment