Advertisement
dragonbs

Countries Without any Mountains

Sep 28th, 2023
1,105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
T-SQL 0.16 KB | None | 0 0
  1. SELECT COUNT(c.[CountryCode]) AS [Count]
  2. FROM [Countries] c
  3. LEFT JOIN [MountainsCountries] mc ON c.[CountryCode] = mc.[CountryCode]
  4. WHERE mc.[MountainId] IS NULL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement