I've got table with properties of some products:
table properties(
prop_id int,
product_id int
)
My question is: is it possible to select properties that match without filtering them from the result? For example:
select property_id from properties WHERE property_id IN(1,3,5);
You get only rows that match 1,3,5. I need all rows but with information of which rows matched my criteria. I don't want to use 'UNION'.
Thanks for help.