Problem Description

In Customers(customer_id) and Orders(order_id, customer_id), make it so when a customer is deleted, all their orders are deleted too.

Input Format

SQL DDL

Output Format

DDL statement(s)

Sample Test Case

Input:
Customers, Orders
Output:
FK with cascade

Constraints

Assume tables exist

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next