Advertisement
Guest User

Untitled

a guest
Jul 30th, 2014
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. select distinct juncao_id, codturma, quantidade, coddisc, dia, count(horario) horario from importacao_urania
  2. where quantidade is not null
  3. and dia='SEG'
  4. group by juncao_id, quantidade, codturma, coddisc, dia
  5. order by quantidade desc, count(horario) desc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement