Oracle keyword DISTINCT restricts the result to unique rows from a query, but DISTINCT is often used as a quick fix to bad queries. Some practices to avoid when using DISTINCT.
Read the Full Article →
Both UNION and UNION ALL concatenate the result sets of two separate SQLs. Where they differ is in the way they handle duplicates.
Read the Full Article →