Skip to content
DEP
Developing Code for Data Processing using Python and SQL
medium
Question 6 of 44

A data engineer runs the following SQL query on an orders table. What does it return?

SELECT customer_id, order_date, amount,
  ROW_NUMBER() OVER (PARTITION BY customer_id ORDER BY order_date DESC) AS rn
FROM orders

AThe total revenue per customer ordered by most recent date
BA sequential row number for each order within each customer partition, with the most recent order numbered 1
CThe rank of each order by amount across all customers with no partition
DThe cumulative sum of amounts partitioned by customer

Educational Content — CertQnA practice questions are written against official exam objectives, covering the same domains tested on the real exam. All content is original and independent — not actual exam questions, not affiliated with any certification vendor. Learn more about our content policy

Discussion

Be the first to share your understanding of this concept

⚠️ Discussion is for concept clarification only. Do not share or request actual exam questions or answers.

Sign in to join the discussion