In a table column I have in 1..n records each amount per product.How can I add those amounts so in a chart to display only the total amount?
Do I have to build another table with a column in which to put these total amount and from here to build the chart?
SELECT SUM(FieldAmount) AS myField, ;
MONTH(fielddDate) AS myMonth ;
FROM myTable GROUP BY myMonth INTO CURSOR myCursor
The above will create a myCursor with totals by month which can be used. Also include other firlds you want to include. ramani
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.