Microsoft Fabric Data Engineer Associate DP-700 Practice Question

While testing a report in Microsoft Fabric warehouse, you run this T-SQL: SELECT OrderDate, COUNT(*) AS TotalOrders FROM dbo.SalesOrders WHERE OrderStatus = 'Completed';

It returns error 8120 stating that column 'OrderDate' must appear in the GROUP BY clause. You need the simplest fix so the query returns one row per day with the correct count. Which change should you make?

  • Replace COUNT(*) with COUNT(OrderDate) to include the column in the aggregate.

  • Add a GROUP BY OrderDate clause to the statement.

  • Rewrite the aggregate as COUNT(*) OVER (PARTITION BY OrderDate).

  • Insert the DISTINCT keyword after SELECT to eliminate duplicates.

Microsoft Fabric Data Engineer Associate DP-700
Monitor and optimize an analytics solution
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot