× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On 01 Mar 2013 18:05, James H. H. Lampert wrote:
<<SNIP>> The query is actually 3 queries, UNION ALL'd together
(not quite sure why UNION'd together isn't good enough). <<SNIP>>

Actually to be UNION'd is more [work] than to be UNION ALL'd ;-)

The specification of UNION keyword is synonymous with having used UNION DISTINCT. The specification of UNION ALL asks the query engine not to expend any effort to additionally ensure that all rows are DISTINCT.

This is in contrast to the select-clause for which SELECT is synonymous with SELECT ALL. Coding SELECT DISTINCT is how to ask the query engine to perform the additional work of DISTINCT processing for the rows.

For consistency, IMO, the UNION and SELECT both should have defaulted to perform ALL processing when an optional additional keyword DISTINCT was not coded. Silly standards.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.