Note: This question is part of a series of questions that use the same scenario. For your convenience, the scenario is repeated in each question. Each question presents a different goal and answer choices, but the text of the scenario is exactly the same in each question on this series.
You have a database that tracks orders and deliveries for customers in North America. System versioning is enabled for all tables. The database contains the
Sales.Customers, Application.Cities, and Sales.CustomerCategories tables.
Details for the Sales.Customers table are shown in the following table:
Details for the Application.Cities table are shown in the following table:
Details for the Sales.CustomerCategories table are shown in the following table:
You need to create a query that meets the following requirements:
✑ For customers that are not on a credit hold, return the CustomerID and the latest recorded population for the delivery city that is associated with the customer.
✑ For customers that are on a credit hold, return the CustomerID and the latest recorded population for the postal city that is associated with the customer.
Which two Transact-SQL queries will achieve the goal? Each correct answer presents a complete solution.
A.
B.
C.
D.
AshleyLiang
Highly Voted 5 years, 11 months agoM4x
5 years, 11 months agoTazul
Highly Voted 5 years, 10 months agoSimSql
Most Recent 4 years, 7 months agoOooo
4 years, 10 months agoAbhilash_KK
5 years, 11 months ago