There are exhaustive notes on how the
Oracle SQL UNION operator is
used to merge separate SQL queries, but there is an important
difference between UNION and UNION ALL.
The Oracle SQL UNION differs from the Oracle UNION ALL primarily
because it does not filter out duplicate rows.
The UNION SQL operator returns only the unique rows that appear in
either result, while the UNION ALL operator returns all rows in both
queries, including duplicate rows.
See how Oracle 11gR2
improves the execution speed of UNION ALL queries.
|
|
Get the Complete
Oracle SQL Tuning Information
The landmark book
"Advanced Oracle
SQL Tuning The Definitive Reference" is
filled with valuable information on Oracle SQL Tuning.
This book includes scripts and tools to hypercharge Oracle 11g
performance and you can
buy it
for 30% off directly from the publisher.
|