Problem Description

Create sp_top_customers(p_n) that returns top N customers by total spend.

Input Format

SQL procedure

Output Format

Procedure created

Sample Test Case

Input:
Orders(customer_id, total_amount)
Output:
Procedure created

Constraints

Return result set

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next