i have a table 'X' in my sql server which has name and status fields and I need to generate a report from that query in which i need to display like
Name, count(Status1),Count(status2)
here i need to group by name and count the number of status status1 is where Status =1 and Status2 is where Status =2 in the table 'X'
How can i display Status1 and Status2 in the same report?
Plese suggest
Thanks in Advance
Ven