Problem Description

In Products(product_id, price), price should be > 0 but table has old bad data. Write a query to find all invalid rows before adding a CHECK constraint.

Input Format

SQL query

Output Format

Result set

Sample Test Case

Input:
Products(product_id, price)
Output:
List of invalid products

Constraints

None

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next