Multiple Row Calculation
Hi All
I have just got my head around simple calculation in SQL.... What I need to acheive now though is to be able to select several rows that using a WHERE clause and then perform a calculation on the selected rows e.g.
SELECT FIELD1 FROM PRODUCTS WHERE PRODUCTTYPE = 1 - Thats the easy bit!
Now I need to add all of the selected rows together.
Is there syntax to do this?
Ta
Rit
__________________
Rit
www.designandonline.co.uk
INSPIRE | CREATE | DELIVER
|