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

1 day, 21 hours remaining!

CompTIA Data+ DA0-002 (V2) Practice Question

You are building a monthly revenue report in a PostgreSQL 15 database. The source table orders stores the precise purchase timestamp in the column order_created_at (TIMESTAMP). Before aggregating, you must transform every timestamp so that all rows from the same calendar month are grouped under the identical key (for example, 2025-03-15 and 2025-03-31 should both become 2025-03-01 00:00:00). Which single SQL expression will perform this normalization in one step so you can immediately use it in a GROUP BY clause?

  • EXTRACT(month FROM order_created_at)

  • TO_CHAR(order_created_at, 'YYYY-MM')

  • DATEDIFF('month', order_created_at, CURRENT_DATE)

  • DATE_TRUNC('month', order_created_at)

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