DAMNThis is some good sheet man...want a hit?create table #t (n int, f varchar(8))insert into #tselect 2, 'Smith' unionselect 4, 'Jones' unionselect 5, 'Adame' unionselect 7, 'Micha' unionselect 7, 'Warne' unionselect 1, 'Rob' unionselect 2, 'Stoad' unionselect 8, 'Tara' unionselect 8, 'Brett' unionselect 10, 'Aardvark' unionselect 0, 'Zeus'select * from #torder by(select count(*) from #t t wheret.f<(select min(tt.f) from #t tt where tt.n=#t.n)), fdrop table #t
Brett8-)