I need to perform a SELECT on the PRODUCTS table that only returns result if the conditions of the PRODUCTS_DETAILS table are true
follow the sql:
select p.* from products p
join products_details pd
on p.id = pd.id_product
WHERE pd.details = 'quadra mar'
AND pd.details = 'prédio novo'
however when I put two or more "AND" it does not return results
objective: search for all products that have the "where" details