Select Sales.Person From Sales ; WHERE Sales.Item = theItem ; AND Sales.amount <> 0.00 ; AND Sales.fk_period In (Select periodV.cid From periodV) ; GROUP By Sales.Person ; Into Cursor doamtMost of the records in this large table have zero amounts. As this is done many times, I wonder if there is a way to do this more efficiently?
AND Sales.fk_period In Array aPeriod ;(except that doesn't work - is it possible?)