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

Home -> Community -> Usenet -> c.d.o.server -> Re: Diff. between UNION and UNION ALL

Re: Diff. between UNION and UNION ALL

From: Shane Murray <smurray_at_bah.com>
Date: 1997/03/02
Message-ID: <33196a17.461232020@news>#1/1

Union- issued an implicit 'distinct' rows which requires sorting, i.e. a longer process

Union all- implies select * from a then append select * from b to the bottom.

EX:

A	B
-	-
1	1
2
3	3

union = (1,2,3)
union all = (1,2,3,1,3)

>
>What's the difference between UNION and UNION ALL (in a SELECT
>statement). I don't find any info on this in the Oracle manuals. Would
>some explain this with a simple example.
Received on Sun Mar 02 1997 - 00:00:00 CST

Original text of this message

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