Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- select distinct juncao_id, codturma, quantidade, coddisc, dia, count(horario) horario from importacao_urania
- where quantidade is not null
- and dia='SEG'
- group by juncao_id, quantidade, codturma, coddisc, dia
- order by quantidade desc, count(horario) desc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement