I tried to extract customer who has type a
I guess I must group by in customer and tried to having in type
customer type A a A c B b B c C a C a but I couldn't figure out specific way to achieve this. If someone has opinion,please let me know.
My desired result is following
customer type A a A c C a C a Thanks
WHEREclause). The condition is that there exists a row with a certain type for the customer in the table (EXISTSclause). There are other solutions, but this is the straight-forward way.INcause is as much straight-forward as anEXISTSclause of course (and I even like it better for its simplicity). The wording sounds a little more complicated, while the query is actually shorter than the query with an exists clause: The condition is that the customer is 'in* the set of customers with the desired type (INclause).