Microsoft Fabric Data Engineer Associate DP-700 Practice Question
Online order data is stored in a Microsoft Fabric warehouse table named OnlineOrders. ItemsJson (nvarchar(max)) holds a JSON array of order-line objects. You must load a new table ItemsWide with one row per order line and its parent order details using a single T-SQL INSERT…SELECT. Which T-SQL construct in the SELECT flattens the JSON array into multiple relational rows?
Apply GROUP BY on ItemsJson and aggregate values into columns.
CROSS APPLY OPENJSON(ItemsJson) WITH (…)
Use JSON_VALUE to extract each property and insert it directly.
PIVOT the ItemsJson column to turn array items into columns.
Using CROSS APPLY with OPENJSON reads the JSON array in each ItemsJson cell and returns one row per array element. Adding a WITH clause lets you map object properties to individual columns, producing the required denormalized output. By contrast, PIVOT rotates rows into columns, JSON_VALUE extracts only a single scalar, and GROUP BY aggregates existing rows-none of which flatten a JSON array into multiple rows.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is OPENJSON in T-SQL?
Open an interactive chat with Bash
What is the purpose of CROSS APPLY in T-SQL?
Open an interactive chat with Bash
Why is PIVOT not suitable for flattening JSON arrays?
Open an interactive chat with Bash
Microsoft Fabric Data Engineer Associate DP-700
Ingest and transform data
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .