select max(t2.dat2),t2.zn2, t2.Tab1_id from table2 t2 group by t2.zn2, t2.Tab1_id
Posted via ActualForum NNTP Server 1.5