-------
Regards ,
C#, VB.NET , SQL SERVER , UML , DESIGN Patterns Interview question book
http://www.geocities.com/dotnetinterviews/
My Interview Blog
http://spaces.msn.com/members/dotnetinterviews/
Regards,
Satheesh
Pls try this.
This works with ur actual data
[Sql]
select * from [Month]
select min( case when value='Jan' then salary end) as Jan,
min( case when value='Feb' then salary end) as Feb,
min( case when value='Mar' then salary end) as Mar,
min( case when value='Apr' then salary end) as Apr,
min( case when value='May' then salary end) as May
from [Month]
[/Sql]
--Dont use the group by
Regards
Lakshmi Narayanan.R