Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Select a single row
How can I rewrite the syntax for obtaining colC so that I still only
get the record that was most recently added, but I dont have to query
tabB twice?
SELECT colA,
colB, (select colC from tabB where colD = 'FOO' and add_date = (select max(add_date) from tabB where colD = 'FOO')) colCFROM tabA