
To address the issue related to the classification of product pricing groups, complete the T-SQL statement accordingly. Analytics engineers need to maintain the pricing group logic in a central location. Furthermore, the pricing group data must be accessible in the data store for T-SQL queries and within the default semantic model. The classification logic is defined as follows: Products with list prices that are less than or equal to 50 fall into the low pricing group. Products with list prices that are greater than 50 and less than or equal to 1,000 fall into the medium pricing group. Products with list prices that exceed 1,000 fall into the high pricing group. Select the appropriate options in the answer area to complete the T-SQL statement. Note that each correct selection is worth one point.
A
VIEW: from an existing table. CASE: correct syntax before the WHENs. WHEN ListPrice BETWEEN 50 AND 1000 THEN 'medium'
B
VIEW: from an existing table. CASE: correct syntax before the WHENs. WHEN(ListPrice > 50 AND ListPrice < 1000 THEN 'medium'
C
VIEW: Shows data as soon as the data is updated in the data store. CASE: correct syntax before the WHENs. WHEN(ListPrice > 50 AND ListPrice < 1000 THEN 'medium'
D
View: a view is reusable for consistent values CASE WHEN(ListPrice > 50 AND ListPrice < 1000) THEN 'medium'
Explanation:
Option A is correct because it correctly uses the T-SQL syntax for the CASE statement and includes the WHEN clause with the correct range for the medium pricing group. The BETWEEN clause is inclusive of both endpoints, so WHEN ListPrice BETWEEN 50 AND 1000 correctly classifies prices between 51 and 1000, while the preceding WHEN clause handles prices less than or equal to 50 as low, ensuring that there is no overlap or missed values.
Ultimate access to all questions.