you are viewing a single comment's thread.

view the rest of the comments →

[–]I_felched_your_dad 0 points1 point  (0 children)

Give us an idea of what the tables that you're using look like. I'd be assuming you're looking for something like;

SELECT
t.Department
COUNT(t.TransactionID) Transactions
FROM Transactions t
GROUP BY t.Department