Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Query Help

$
0
0
I need to write a SQL for below requirment :
Customer table :
Customer Plan
1 A
1 B
1 E
2 A
2 B
2 C
2 D
2 E
2 F
3 A
3 B
4 A
5 B

The customer which has ONLY plan A or B (in my above example Customer number 3 ,4 and 5 should be returned )

I belive there might be some easy trick to do it but I cant think of any right now. I would appreciate any help. :)

Viewing all articles
Browse latest Browse all 13329

Trending Articles