Created
December 13, 2016 10:00
-
-
Save crabcrabcam/2ced4fa18049037a7d15dd49a7982f44 to your computer and use it in GitHub Desktop.
Gets regions by ID and all that
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Define the database to use | |
USE ExSQL7 | |
-- Gets all the parts I want and joins them together and links them. | |
SELECT Region.RegionID, Territories.TerritoryID, Region.RegionDescription, Territories.TerritoryDescription FROM Region | |
INNER JOIN Territories | |
ON Territories.RegionID = Region.RegionID | |
ORDER BY RegionDescription, TerritoryDescription |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment