Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi ,

I have a doubt in SQL server.

I have 3 date columns , my columns is look like this...

ID       COL1        COL2        COL3         
1        JAN-2011    NULL        FEB-2013
2        NULL        NULL        NULL
3        NULL        DEC-2012    NULL


NOW, i need a column like

ID       COL1        COL2        COL3          col4
1        JAN-2011    NULL        FEB-2013     jan-2011
1        JAN-2011    NULL        FEB-2013     FEB-2013
2        NULL        NULL        NULL         null
3        NULL        DEC-2012    NULL         dec-2012 


How to achieve my desired output.
Can any one help me out of this....
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900