Is there a way to write intersect queries in SQL '99?
Or perhaps I'm just missing something entirely... I have two tables, related by 1 to many. Products, and states for those products. I want all products which were at some time in both state A and state B.... easy to enough to get all products in either state, but to do both I'd like an intersection.
Do I need to do this in my code, or can I do it in a query?
Thanks,
Rob
Or perhaps I'm just missing something entirely... I have two tables, related by 1 to many. Products, and states for those products. I want all products which were at some time in both state A and state B.... easy to enough to get all products in either state, but to do both I'd like an intersection.
Do I need to do this in my code, or can I do it in a query?
Thanks,
Rob