View combining latest order per customer

SQL Hard 0 views
Back to Questions

Problem Description

Create view v_customer_latest_order that shows each customer with their latest order_id and date.

Input Format

SQL DDL

Output Format

View created

Sample Test Case

Input:
Customers, Orders
Output:
View created

Constraints

Use window function

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next