I want to display certain set of records in a pivot table format. For that I'm giving the statement as :
SELECT criticality, subsystem, COUNT(*) AS Tot
FROM tblBSSCSRProblem WHERE csrstatus NOT LIKE 'C%'
GROUP BY subsystem, criticality
which gives the output as
criticality subsystem Tot
Critical BTS 1
Critical Preside 1
Major BSC 2
Major BSS 2
Major BTS 2
Major OMC 1
Major PCUSN 4
Major Preside 1
Major SGSN 3
Minor BSC 1
Can anybody tell me the query so that I can get the output in the following format:
BTS Preside BSC GGSN OMC
Critical 1 1 0 0 0
Major 2 1 2 0 0
Minor 0 0 1 0 0
somebody told me that we can display the data like this through SQL. But I don't know how. Can anybody help.
Thanks in Advance.
SELECT criticality, subsystem, COUNT(*) AS Tot
FROM tblBSSCSRProblem WHERE csrstatus NOT LIKE 'C%'
GROUP BY subsystem, criticality
which gives the output as
criticality subsystem Tot
Critical BTS 1
Critical Preside 1
Major BSC 2
Major BSS 2
Major BTS 2
Major OMC 1
Major PCUSN 4
Major Preside 1
Major SGSN 3
Minor BSC 1
Can anybody tell me the query so that I can get the output in the following format:
BTS Preside BSC GGSN OMC
Critical 1 1 0 0 0
Major 2 1 2 0 0
Minor 0 0 1 0 0
somebody told me that we can display the data like this through SQL. But I don't know how. Can anybody help.
Thanks in Advance.