Advertisement
igorsmirdov

Test 2 Solution [Unitarius]

Jul 26th, 2022
1,120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --Test 2 Solution
  2.  
  3. 2.1
  4.  
  5. SELECT * FROM taba FULL JOIN tabb USING (author);
  6.  
  7. 2.2
  8.  
  9. WITH cte AS (SELECT * FROM taba FULL JOIN tabb USING (author))
  10.  
  11. SELECT * FROM cte t1
  12. WHERE EXISTS(SELECT 1 FROM cte t2
  13.              WHERE t1.author = t2.author AND t1.book <> t2.book)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement