AndrewMozley
Programmer
I do not use SELECT-SQL very much (perhaps I should use it more). But I would like to write a command which will detect in a single table where there are entries for a particular key do not add up to zero.
The table is XENTN. Three of the fields are tDate (D), Folio C(8) and tValue N(9,2). A transaction on a particular day is given an identifier (Folio) and may have several records in table XENTN.
The command :
SELECT SUM(tValue) AS TotValue , Folio FROM XENTN GROUP BY Folio
. . . produces a cursor with a single record for each transaction, and one can view the resultant cursor to see any offending transactions.
How can I modify the command to produce a cursor which only shows the offending transactions?
Thanks - Andrew
The table is XENTN. Three of the fields are tDate (D), Folio C(8) and tValue N(9,2). A transaction on a particular day is given an identifier (Folio) and may have several records in table XENTN.
The command :
SELECT SUM(tValue) AS TotValue , Folio FROM XENTN GROUP BY Folio
. . . produces a cursor with a single record for each transaction, and one can view the resultant cursor to see any offending transactions.
How can I modify the command to produce a cursor which only shows the offending transactions?
Thanks - Andrew