Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. SELECT big2.*
  2. FROM small_table s1
  3. INNER JOIN small_table s2 ON s1.id = s2.parent_id
  4. INNER JOIN big_table1 big1 ON s2.id = big1.id
  5. INNER JOIN big_table2 big2 ON big1.matchresult_id = big2.matchresult_id
  6. ORDER BY big2.matchresult_id
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement