Problem Description

For each customer, show the first time they ordered and the most recent order date. This is a clean use of MIN and MAX.

Input Format

SQL query

Output Format

Result set

Sample Test Case

Input:
Orders(customer_id, order_date)
Output:
Rows per customer

Constraints

Think: GROUP BY customer_id

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next