karlomutschler
Programmer
Hi,
the following query listed all the contract_id numbers whose revenue amount for a period of 3 months exceeded 250.
SELECT contract_id
FROM contract_turnover
WHERE revenue_date BETWEEN '01.04.2001' AND '01.06.2001'
GROUP BY contract_id, revenue_amount
HAVING SUM( revenue_amount) > 250
;
However, now I wish to know how many contracts there actually were, that exceeded the required amount.
TIA for your help
Kind regards.
Karlo
the following query listed all the contract_id numbers whose revenue amount for a period of 3 months exceeded 250.
SELECT contract_id
FROM contract_turnover
WHERE revenue_date BETWEEN '01.04.2001' AND '01.06.2001'
GROUP BY contract_id, revenue_amount
HAVING SUM( revenue_amount) > 250
;
However, now I wish to know how many contracts there actually were, that exceeded the required amount.
TIA for your help
Kind regards.
Karlo