Silviya7

14. Countries with Rivers

May 31st, 2022 (edited)
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.22 KB | None | 0 0
  1. SELECT top 5 c.CountryName, r.RiverName
  2. FROM Countries c
  3. INNER  JOIN  CountriesRivers cr
  4. ON cr.CountryCode= c.CountryCode
  5.  LEFT JOIN  Rivers r
  6. ON r.Id= cr.RiverId
  7. WHERE c.ContinentCode='AF'
  8. ORDER BY  c.CountryName ASC
Add Comment
Please, Sign In to add comment