This query is for a niche price comparison website.
I have 2 tables, the first lists product details and the second lists all the prices associated with the product. A product can have one or many prices.
I am looking to list all the products that have no active prices for housekeeping purposes.
It is possible to have an entry in the price table where the price = zero, in which case Prod_price_active would be set to "0". If a product does have a price, then Prod_price_active would be set to "1"
Table 1
Prod_id
Prod_name
Prod_description
Table 2
Price_id
Prod_id
Prod_price
Prod_price_active