Question: Using the AdventureWorks2017 database, create a query that will list the LastName, TerritoryName, CountryRegionName from Sales.vSalesPerson. Do not include rows where the TerritoryName is NULL.

Using the AdventureWorks2017 database, create a query that will list the LastName, TerritoryName, CountryRegionName from Sales.vSalesPerson. Do not include rows where the TerritoryName is NULL. Sort the results by the TerritoryName when the CountryRegionName is the United States and by the CountryRegionName when it is not.

This is for MySQL and just need the query since you may not have access to the database.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!