Venciity

sql query

Mar 25th, 2015
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.36 KB | None | 0 0
  1. /****** Script for SelectTopNRows command from SSMS  ******/
  2. SELECT c.CountryName, r.RiverName
  3.   FROM [Geography].[dbo].[CountriesRivers] cr
  4.   JOIN Countries c ON cr.CountryCode = c.CountryCode
  5.   JOIN Rivers r ON cr.RiverId = r.Id
  6.   WHERE c.CountryName = 'Brazil' OR c.CountryName = 'Mexico'/*
  7.                                    OR c.CountryName = 'Austria' */
  8.   ORDER BY r.RiverName
Advertisement
Add Comment
Please, Sign In to add comment