Not sure if I have a clue what I'm doing. But, I know it's not working. I'm trying to pull quarterly data from one table. Summing up month 1,2, and 3 as Qtr 1 and 3,4 and 5 as Qtr2 and group by lastName:
Table:
LastName
Firstname
Queuescore
Month ex; 1,2,3, etc
SELECT SUM(QueueScore) AS QueueScoreQtr1, LastName
FROM dbo.CapacityMonthlyTotals
WHERE ([Month] = 1) OR
([Month] = 2) OR
([Month] = 3)
(SELECT SUM(QueueScore) AS QueueScoreQtr2, LastName
FROM dbo.CapacityMonthlyTotals
WHERE ([Month] = 4) OR
([Month] = 5) OR
([Month] = 6)
)
GROUP BY LastName
Thanks
Table:
LastName
Firstname
Queuescore
Month ex; 1,2,3, etc
SELECT SUM(QueueScore) AS QueueScoreQtr1, LastName
FROM dbo.CapacityMonthlyTotals
WHERE ([Month] = 1) OR
([Month] = 2) OR
([Month] = 3)
(SELECT SUM(QueueScore) AS QueueScoreQtr2, LastName
FROM dbo.CapacityMonthlyTotals
WHERE ([Month] = 4) OR
([Month] = 5) OR
([Month] = 6)
)
GROUP BY LastName
Thanks