Guest User

Untitled

a guest
Feb 21st, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.17 KB | None | 0 0
  1. SELECT la.*
  2. FROM   log_accounts la
  3. WHERE  la.userid IN
  4.     (
  5.            SELECT   la_.userid
  6.             FROM     log_accounts la_
  7.             GROUP BY la.userid
  8.             HAVING   COUNT( * ) >= 3
  9.      );
Add Comment
Please, Sign In to add comment