Advertisement
Guest User

Untitled

a guest
Aug 1st, 2015
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. SELECT count(col) AS totalCount, count(distinct col) AS uniqueCount FROM ...
  2.  
  3. SELECT count(col) AS totalCount
  4. , count(distinct col) AS uniqueCount
  5. FROM ...
  6.  
  7. SELECT count(col) AS totalCount
  8. , count(distinct col) AS uniqueCount
  9. , count( case when ... then 1 end ) as conditional_count
  10. FROM ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement