Advertisement
Papadopolis

Untitled

Dec 27th, 2013
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.28 KB | None | 0 0
  1. SELECT
  2.     profs.NM_PROF NomeProfissao, COUNT(contas.Profissao) NumeroJogadores, profs.ID_PROF IdProfissao
  3. FROM
  4.     contas_rpg contas,
  5.     UCP_HOM01.TP_PROFISSOES profs
  6. WHERE
  7.     contas.Profissao = profs.ID_PROF
  8. GROUP BY contas.Profissao
  9. ORDER BY NumeroJogadores ASC
  10. LIMIT 0 , 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement