PostgreSQL - Aggregate Functions and GROUP BY
Find the error in this query:
SELECT product_type,
COUNT(*) FILTER (status = 'available') AS available_count
FROM inventory
GROUP BY product_type;