Count per month [message #4569] |
Sun, 22 December 2002 22:35 |
Heidi R
Messages: 1 Registered: December 2002
|
Junior Member |
|
|
Total newbie here... I want to list the total number of estimates, by month, for each facility. But what I am getting instead is hundreds and hundreds of pages instead of one COUNT (sum of all estimates) per facility.
Here's my hundreds of pages query:
SELECT f.facilitycode,
to_char(E.timestamp, 'MM-YYYY'), count(e.estimatenumber)
FROM estimate E, facility F
GROUP BY to_char(e.timestamp, 'MM-YYYY'), f.facilitycode, e.estimatenumber
can anyone help??
|
|
|
|