|
Posted by Mark Probert on 02/22/07 19:17
Hi, Ed..
You wrote:
|>
|> select t.aID, t.bID, t.cID, t.dID
|> from the_table t
|> join (
|> select bID, max(cID) max_cID
|> from the_table
|> group by bID
|> ) s on t.bID = s.bID and t.cID = s.max_cID
Many thanks.
I have some study to do on that "join" syntax ;-)
--
-mark.
Navigation:
[Reply to this message]
|