I have an Oracle table with assets, periods and various other fields.
Can a create a view to show me the records for the last period per asset?
The 2 stage SQL all processed at the client end would be something like
SELECT asset, MAX(period) AS maxper ;
FROM table ;
GROUP BY asset ;
INTO CURSOR foo
SELECT table.* ;
FROM table, foo ;
WHERE table.asset=foo.asset ;
AND table.period=foo.maxper
but I don't want to drag a gazillion records into Fox to do that if I can
avoid it by making the server process it before sending.
--
TIA
Andrew Howell