Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> more than one union or intersect operator

more than one union or intersect operator

From: Wong Chung Yin <cscywong_at_ug.cs.ust.hk>
Date: 1997/02/17
Message-ID: <5e99dj$9mp@ustsu10.ust.hk>#1/1

Hi,

        If there are many "union" and "intersect" in a SQL statement, how can I state the precedence of union and intersect. For example :

select id from database where keyword = 'computer' union
select id from database where keyword = 'science' intersect
select id from database where keyword = 'course'

The result of the above query will be difference if I execute the union and then intersect with the result of 3rd select. Received on Mon Feb 17 1997 - 00:00:00 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US