All pastes #183817 Raw Edit

Stuff

public sql v1 · immutable
#183817 ·published 2006-09-27 08:41 UTC
rendered paste body
select GRUP, CLIENT, COD_CLIENT, NUME, SUMA   from TBL where GRUP in ( select GRUP, count(COD_CREDIT)                    from TBL                   group by GRUP                  oder by count(COD_CREDIT) desc                  limit 10  ) order by GRUP,CLIENT;