Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- select count(fixed) as votes
- from fixed d
- group by fixed
- having fixed=1
- union all
- select count(fixed) as votes
- from fixed d
- group by fixed
- having fixed=0
- [votes]
- 4
- 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement