Oracle
 sql >> Database >  >> RDS >> Oracle

Più valori massimi in una query

Possiamo usare colonne multiple in una clausola IN:

select id, bdate, value 
from myview 
where (id, bdate) in
    (select id, max(bdate)
     from myview group by id)
/