Query PostgreSQL products

Return id and title for products in stock, ordered by id.

Opening your local progress…

Show solution and explanation

Return id and title for products in stock, ordered by id. This activity executes in a disposable PGlite PostgreSQL engine on your device.

SELECT id, title FROM products WHERE stock > 0 ORDER BY id;