| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Curious SQL question
Neo wrote:
>>select distinct orders.customer_id, products.product_id >> from orders, products >>minus >>select distinct customer_id, product_id >> from products; >> >>The first select esablishes a "universe of discourse" for the query by >>joining every customer with every product. The second select excludes >>products that a customer did buy.
Uh, isn't that 'A MINUS B' or, if you prefer, MINUS (A, B). Received on Sat Jan 06 2007 - 03:22:30 CST
![]() |
![]() |