Problem Description

Return orders that are the latest order for each customer.

Input Format

SQL query

Output Format

Result set

Sample Test Case

Input:
Orders(customer_id, order_date)
Output:
Latest orders

Constraints

Use correlated max

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next