| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: difference between UNION operator and OR in where clause
Mike wrote:
> On Jul 10, 9:59 am, David Portas > <REMOVE_BEFORE_REPLYING_dpor..._at_acm.org> wrote: >
> > The keys for all the 3 tables are "pubid". "ALL" means to allow > duplicated records, and "DISTINCT" will remove the duplicated ones. > > But I still don't get it. > > Could you give more hints ?
In the second case, if a book id matches a publication id, how many journals will match the WHERE clause? Remember TRUE OR FALSE = ____ Similarly if a journal id matches the a publication id, how many books will match the WHERE clause? Remember FALSE OR TRUE = ____
I will let you fill in the blanks.
Consider as well the nullary cases. What happens to the result of the FROM clause if there are no books at all or if there are no journals at all? Received on Tue Jul 10 2007 - 09:40:29 CDT
![]() |
![]() |