Herje nochmals ich glaube jetzt ist es richtig.
Sorry sorry sorry....
select name.tb1, name.tb2 from table tb1, table tb2 where tb1.grpid = max(tb1.grpid) and tb2.grpid = max(tb2.grpid) and tbi.id = min(tb1.id) and tb2.id = min(tb2,id)
Ich hoffe ich habs nun richtig verstanden.