Guest User

Untitled

a guest
Apr 20th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. Select d.table_c.*
  2. from (with table_c as (select *
  3. from table_a)
  4. select *
  5. from table_b
  6. where table_a.id = table_b.id) as d
  7.  
  8. ;WITH table_c
  9. as
  10. (SELECT * FROM table_a)
  11. SELECT *
  12. from table_b b
  13. INNER JOIN table_c c on c.id = b.id
Add Comment
Please, Sign In to add comment