Unlock access to all the studying documents.
View Full Document
Chapter 5: Multiple-Table Queries
Cengage Learning Testing, Powered by Cognero
1. When joining tables, it is always necessary to qualify a column name.
2. You can join tables by using a condition in the WHERE clause.
3. To ensure that query results are listed in a desired order, use the ORDER BY clause.
4. To relate two tables, in the FROM clause list all columns involved in the query.
5. You must join tables by finding rows in the two tables that have identical values in matching columns.
6. It is permissible to qualify all column names in a query.
7. There is only one approach to joining tables.
Chapter 5: Multiple-Table Queries
Cengage Learning Testing, Powered by Cognero
8. You can use the EXISTS operator to retrieve data from more than one table.
9. You can use the IN operator to retrieve data from multiple tables.
10. When the innermost subquery is evaluated, a permanent table is produced.
11. In a nested query, the outer query is evaluated first.
12. In small databases, there is a significant time difference between different query approaches.
13. When using a DBMS without an optimizer, the formulation of a query can make a difference in the speed with which
the query is executed.
Cengage Learning Testing, Powered by Cognero
20. Oracle supports the INTERSECT operator.
21. To produce the same results as the INTERSECT operator, use the BETWEEN operator and a subquery.
22. To produce the same results as the MINUS operator, use NOT, the IN operator and a subquery.
23. SQL Server does not support the MINUS operator.
24. You can use the ALL and ANY operators with subqueries to produce a single column of numbers.
25. You can perform special operations, such as self-joins, within SQL.
26. There are three types of inner joins.
Chapter 5: Multiple-Table Queries
Cengage Learning Testing, Powered by Cognero
27. In a full outer join, all rows from both tables will be included regardless of whether they match rows from the other
table.
28. The product operation is commonly used.
29. It is easy to create a product inadvertently by omitting the WHERE clause when you are attempting to join tables.
30. Table A has 10 rows and table B has 7 rows. The product of Table A and Table B would have 70 rows.
31. You can join tables by using a condition in the ____ clause.
32. To qualify a column name, precede the name of the column with the name of the table, followed by a(n) ____.
Chapter 5: Multiple-Table Queries
Cengage Learning Testing, Powered by Cognero
33. To retrieve data from multiple tables in a query you can use the ____ operator with a subquery.
34. You can precede a subquery with the ____ operator to create a condition that is true if one or more rows are obtained
when the subquery is executed.
35. When a subquery involves a table listed in the outer query, the subquery is called a(n) ____ subquery.
36. A(n) ____ clause can include statistics calculated for only the groups or columns whose values are identical for each
row in a group.
Cengage Learning Testing, Powered by Cognero
37. You create an alias by typing the name of the table, pressing the ____, and then typing the name of the alias.
38. The ____ of two tables is a table containing every row that is in either the first table, the second table, or both tables.
39. The ____ of two tables is a table containing all rows that are in both tables.
40. The ____ of two tables is the set of all rows that are in the first table but that are not in the second table.
41. Two tables are ____ compatible if they have the same number of columns and if their corresponding columns have
identical data types and lengths.
Cengage Learning Testing, Powered by Cognero
42. For an SQL implementation to truly support the union operation, it must remove ____ rows automatically.
43. Oracle and SQL Server support the ____ operator but Microsoft Access does not.
44. If you precede the subquery by the ____ operator, the condition is true only if it satisfies all values produced by the
subquery.
45. If you precede the subquery by the ____ operator, the condition is true only if it satisfies any value (one or more)
produced by the subquery.
46. Which of the following joins compares the tables in the FROM clause and lists only those rows that satisfy the
condition in the WHERE clause?
Chapter 5: Multiple-Table Queries
Cengage Learning Testing, Powered by Cognero
47. In a(n) ____ join, all rows from both tables are included regardless of whether they match rows from the other table.
48. In a ____, all rows from the table on the left (the table listed first in the query) will be included regardless of whether
they match rows from the table on the right (the table listed second in the query).
49. The product of two tables is formally called the ____ Product.
50. In a ____, all rows from the table on the right will be included regardless of whether they match rows from the table
on the left.
51. To retrieve data from more than one table, you must ____________________ the tables together by finding rows in
the two tables that have identical values in matching columns.
Chapter 5: Multiple-Table Queries
Cengage Learning Testing, Powered by Cognero
52. You join tables in SQL by including a condition in the ____________________ clause to ensure that matching
columns contain equal values.
53. When there is potential ambiguity in listing column names, you must ____________________ the columns involved
in the query.
54. The subquery that involves a table listed in the outer query is called a(n) ____________________ subquery.
55. A subquery within a subquery is called a(n) ____________________ subquery.
56. SQL performs many built-in ____________________ that analyze queries to determine the best way to satisfy them.
57. When tables are listed in the FROM clause, you can give each table a(n) ____________________, or an alternate
name.
58. Joining a table to itself is called a(n) ____________________.
59. If you had two separate tables for customers and the query requested customers in the first table having the same city
as customers in the second table, you could use a normal ____________________ operation to find the answer.
Cengage Learning Testing, Powered by Cognero
60. In a multiple-table query, you list all the desired columns in the ____________________ clause and qualify any
columns that appear in more than one table.
61. The ____________________ of two tables is a table containing every row that is in either the first table, the second
table, or both tables.
62. The ____________________ of two tables is a table containing all rows that are in both tables.
63. The ____________________ of two tables is the set of all rows that are in the first table but that are not in the second
table.
64. Two tables are ____________________ compatible if they have the same number of columns and if their
corresponding columns have identical data types and lengths.
65. If the SQL implementation truly supports the union operation, it will remove any duplicate ____________________
automatically.
66. If you precede a subquery by the ____________________ operator, the condition is true only if it satisfies all values
produced by the subquery.
67. If you precede a subquery by the ____________________ operator, the condition is true only if it satisfies one or
more values produced by the subquery.