oracle - SQL to get Latest Objects -
i have oracle table has pk of object_id, , field called system_id. system_id can occur multiple times , acts master associate multiple versions of object.
what need retrieve latest object_id each system_id in table. can assume largest object_id latest, can use max function. problem doing each system_id. maybe need write pl/sql instead of basic sql query? thoughts?
thanks in advance!
well, use max , group ?
select max(object_id) maxobjectid --, system_id table group system_id
Comments
Post a Comment