Advertisement
Guest User

Untitled

a guest
Aug 30th, 2015
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. SELECT col1, count(col1)/total
  2. FROM table1 ,(SELECT count(*) as total from table1
  3. WHERE date between '2015-08-03' and '2015-08-04'
  4. ) as temp
  5. WHERE date between '2015-08-03' and '2015-08-04'
  6. GROUP BY col1
  7. HAVING count(col1)>1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement