Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. SELECT screen_name, substring(member_since,1,12) from users where substring(member_since,1,12) in (SELECT substring(member_since,1,12)
  2. FROM users
  3. GROUP BY substring(member_since,1,12)
  4. HAVING COUNT(*)>50)
  5.  
  6.  
  7. return:
  8. Expression #1 of HAVING clause is not in GROUP BY clause and contains nonaggregated column 'Twitter.users.member_since' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement