here is the query for the 1st response (Direct to Table)
select sym, linetime, pubseqno from all_trades_tbl
where mdb_date = '10-DEC-2002'
and sym = 'A'
and exid= 'N'
and reftype is null
and nvl(cextype,'0') != 'X'
and nvl(cextype,'0') != 'E'
and rownum <= 11
order by pubseqno desc;
---------------------------------------------
here is the query for the 2nd response (Through Join on the Table)
select sym, linetime, pubseqno from all_trades
where mdb_date = '10-DEC-2002'
and sym = 'A'
and exid= 'N'
and reftype is null
and nvl(cextype,'0') != 'X'
and nvl(cextype,'0') != 'E'
and rownum <= 11
order by pubseqno desc;
---------------------------------------------
The difference is they are the same data set and the same query hsould return the same results, but through the join, the table is retrieving rownums in the opposite direction. one data set is from the morning 1st data points being inserted and teh other being the final data points being insered (which is what i want). these tables can have millions of entries and i was using rownum to speed up the fetch. once we ahd to move to a larger database (distibuted) and use the join of two tables, the query fails.