
POSTED: Oct 21, 2009 2:37 PM (GMT)
When you want to use the ‘rownum’ to achieve something like that, you need to use inline views.
Something like this:
SELECT * FROM (SELECT secid, time, source FROM your_table WHERE secid = 1 ORDER BY time desc, source desc) WHERE rownum = 1;
But I guess you need one row per secid…
What version of the database are you using ?
















