SQL select problem
March 20, 2006 3:30 AM
Subscribe
help me with this SQL select
Below is a small sample from a large table. From it I need to select the Product ID's that are only in Category A and B.
prodId catId
101 A
101 B
101 C
101 D
102 A
102 B
103 A
103 B
103 C
104 A
104 B
105 C
106 A
106 B
107 B
107 C
108 C
108 D
So from the sample only product's 102, 104 106 would qualify. I thought this would be simple but it's wrecking my head.
posted by oh pollo! to computers & internet (24 comments total)
Or something like that.
posted by cillit bang at 3:48 AM on March 20, 2006