⚡️ Pass with Confidence Sale - 40% off ALL packages! ⚡️

1 day, 17 hours remaining!

CompTIA Data+ DA0-002 (V2) Practice Question

Your organization stores shipping records in a SQL Server table named shipments with the columns order_id (INT), order_date (DATETIME), and delivery_date (DATETIME). To monitor logistics performance, you must create a field that shows how many calendar days each order spent in transit so the data team can later filter for any orders that took more than 7 days. You are not allowed to overwrite existing columns. Which SQL statement meets the requirement by creating an appropriate derived variable?

  • SELECT order_id, DATEDIFF(day, delivery_date, order_date) AS shipping_days FROM shipments;

  • SELECT order_id, delivery_date - order_date AS shipping_days FROM shipments;

  • SELECT order_id, DATEDIFF(day, order_date, delivery_date) AS shipping_days FROM shipments;

  • SELECT order_id, DATEADD(day, order_date, delivery_date) AS shipping_days FROM shipments;

CompTIA Data+ DA0-002 (V2)
Data Acquisition and Preparation
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