Guest User

Untitled

a guest
Feb 23rd, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. SELECT DISTINCT s.*
  2. FROM sconsole s
  3. JOIN sconsole t ON (s.site_id = t.site_id AND month(str_to_date(s.month,'%b')) > month(str_to_date(t.month,'%b')))
  4. where (s.site_id = t.site_id)
Add Comment
Please, Sign In to add comment