Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: how to do this with sql?
select name, surname, n2.customer_id
from (select name, customer_id
from table_a where name is not null and entry_date = (select max(entry_date) from table_a ta2 where ta2.name is not null and ta2.customer_id = table_a.customer_id) ) as n1, (select surname, customer_id from table_a where surname is not null and entry_date = (select max(entry_date) from table_a ta2 where ta2.surname is not null and ta2.customer_id = table_a.customer_id) ) asn2
Just off the top of my head so may need debugging... Received on Wed May 10 2006 - 10:17:40 CDT