How do I get the Cars and Features which have both Feature1 & Feature2 in below table (BMW and Toyota)?
Select Car,Feature
from Table
where Feature in ('Feature1','Feature2')
gives all 3 cars, including Honda which has Feature1 only. This is just a simplified example of the actual query, which can have hundreds of values in the IN clause.
Car Feature
----- --------
BMW Feature1
BMW Feature2
BMW Feature3
Toyota Feature1
Toyota Feature2
Honda Feature1
Thanks, Kiran