I'm trying to combine multiple select statements into 1 query but can't seem to get it right. I figure I would need to do a sub select. I'm sure it's something simple I'm overlooking. I have more after the 2nd query but they're all the same setup except different TAS_UID numbers.
Query 1:
SELECT USR_USERNAME AS 'User Name',
COUNT(AD.app_uid) AS 'Total'
FROM APP_DELEGATION AD
JOIN USERS U
WHERE AD.USR_UID = U.USR_UID
AND AD.DEL_THREAD_STATUS = 'Closed'
GROUP BY AD.USR_UID
Query 2:
SELECT USR_USERNAME AS 'User Name',
COUNT(AD.app_uid) AS 'Total for Task A'
FROM APP_DELEGATION AD
JOIN USERS U
WHERE AD.USR_UID = U.USR_UID
AND AD.DEL_THREAD_STATUS = 'Closed'
AND AD.TAS_UID = '23423423455'
GROUP BY AD.USR_UID