Question 171 · 190 in bank
HOTSPOT - You have a Fabric warehouse that contains a table named Sales.Orders. Sales.Orders contains the following columns.
You need to write a T-SQL query that will return the following columns.
How should you complete the code? To answer, select the appropriate options in the answer area. NOTE: Each correct answer is worth one point.
This is an interactive task on the real exam — a drag-and-drop, hotspot or ordering question. There is nothing to select here, so the answer is shown below for reference.
Show the answer figure
Answer: See figure below
Explanation
Just echecked it. Date trunc returns the first date of the month and datepart just the month number. So given answer is correct.
Source: Adapted from community discussion — e0f0ce6
