Problem Description

Delete Products that were created more than 365 days ago and never appeared in OrderItems. Use NOT EXISTS to avoid NULL issues.

Input Format

SQL DML

Output Format

DML statement(s)

Sample Test Case

Input:
Products, OrderItems
Output:
Rows deleted

Constraints

Assume PostgreSQL-style interval

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next