Negative Stock Balances

Negative Stock Balances

The inventory check is looking for products whose stock dropped below 0. Return the product id values, sorted by id.

Expected output sample

This is what a correct answer looks like — its row count is its own, it doesn't have to match the schema tables. Your answer must use the same column names as this sample — alias them with AS if needed.

id
2
PostgreSQLv16

Your query result will appear here

Focus radio
Paused · SomaFM · Fluid