I am trying to write a report which has multiple counts:
SELECT
C.REGION,
COUNT (C.id) AS 'No of customers',
COUNT (C.id) AS 'No of new customers',
COUNT (C.id) As 'No of waiting customers',
COUNT (C.id) As 'Total No of help available'
FROM CUSTOMER C
INNER JOIN CUSTOMERPARAMETER CP ON C.ID=CP.ID
WHERE (C.DATEOFBIRTH IS NULL)
GROUP BY C.REGION
The problem is each of my counts are populated by different queries. What is the best way to create a multiple query report?
It doesnt allow me to write a select statement for each count... I need to write a DIFFERENT query for each count. But it wont let me.