Update SQL lab 1 instructions

This commit is contained in:
askiiart 2024-02-12 11:04:38 -06:00
parent 348828018c
commit 11b6a7f5ad
Signed by untrusted user who does not match committer: askiiart
GPG key ID: BC3800E55FB54D67

View file

@ -2,6 +2,8 @@
*UPDATE: Scenario 5 should be `or`, not `and`.* *UPDATE: Scenario 5 should be `or`, not `and`.*
*UPDATE: Scenario 10 table name is `StateProvinces`.*
This lab has you practice simple queries against tables with filtering and ordering. Write the SQL queries that properly answer each scenario. This lab has you practice simple queries against tables with filtering and ordering. Write the SQL queries that properly answer each scenario.
For each scenario include the following in your answer: For each scenario include the following in your answer:
@ -90,7 +92,7 @@ Rows: 676
## Scenario 10 ## Scenario 10
Select the `CityName`, `StateProvinceName`, `CountryName` and `SalesTerritory` from the `Application.Cities`, `Application.StateOrProvinces` and `Application.Countries` tables. Select the `CityName`, `StateProvinceName`, `CountryName` and `SalesTerritory` from the `Application.Cities`, `Application.StateProvinces` and `Application.Countries` tables.
Include only the rows that are for the `SalesTerritory` with values of `Southeast` or `Southwest`. Include only the rows that are for the `SalesTerritory` with values of `Southeast` or `Southwest`.
Order the rows by `StateProvinceName` and then by `CityName`. Order the rows by `StateProvinceName` and then by `CityName`.