I'm building a report and currently doing it the "hard way". There are so many variables in building the report that it isn't working in all cases. I have a select statement something like this:
SELECT * FROM mytable
WHERE CDate >= '2003-11-01'
AND CDate <= '2003-11-31'
AND (division = 'A' OR division = 'V')
ORDER BY Status, division, dept
.
Status will be Approved, Cancelled, Rejected.
What I want to do is count up all the departments (like A1,A2,...) that match within each division.
Is there a way to write a SELECT statement to do this?
Thanks,
casa