Click here to Skip to main content
15,899,544 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
Hi All,

I have data in a table emp as

UserName Department
Mohd.wasif Web
Mohd.wasif Sigma
mohd.wasif SQL Server
Sumit.singh C#
Sumit.singh Oracle
Sumit.singh Java
uday,singh Web
uday.singh Sigma
tom Web
Now I I select department as Web then output should be employess having web



UserName Department
mohd.wasif Web,Sigma,SQL Server
uday.singh Web,Sigma
tom Web



Please Help
Posted
Updated 11-Apr-12 20:10pm
v2

1 solution

Have a look at the Pivot command[^].
 
Share this answer
 

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