Guest User

Untitled

a guest
Feb 21st, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. SELECT nome, idade
  2. FROM other_table
  3. WHERE myid = `from`, myid = `to`(SELECT `from`, `to`, COUNT(*) AS num_clicks
  4. FROM my_rank
  5. WHERE my_rank_data >= NOW() - INTERVAL 1 DAY
  6. GROUP BY `from`, `to`
  7. ORDER BY num_clicks DESC LIMIT 20);
Add Comment
Please, Sign In to add comment