6.5. Review Questions

  1. A subquery is allowed in which parts of a SQL SELECT statement?

  2. True or false: A correlated subquery references a table in the SELECT clause.

  3. Which set operator will not remove duplicate rows from the result of a compound query?

  4. What characteristics of the columns in a compound query using INTERSECT must match?

  5. How are NULL values handled using set operators in a compound UNION query?

  6. Why are ROLLUP and CUBE the preferred methods for generating subtotals and grand totals for an aggregate query?

  7. Which operators can be used to compare a column to a single-row subquery?

  8. A compound query that needs to find only the rows that are the same between the two queries should use the __________ set operator.

  9. True or false: The IN operator cannot be used with a single-row subquery.

  10. Put the set operators UNION, UNION ALL, INTERSECT, and MINUS in order of precedence.

  11. What can be used to change the precedence of a pair of queries in a compound query with more than two queries?

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset