True/False Indicate whether the
statement is true or false.
|
|
|
1.
|
If a Cartesian join is used to link table A which contains five rows to table B
which contains eight rows, there will be 13 rows in the results.
|
|
|
2.
|
The most common type of join is an equijoin, which joins two or more tables
together based upon the tables having equivalent data values in a common column.
|
|
|
3.
|
A Cartesian join usually results when the programmer omits the joining condition
that links two or more tables together.
|
|
|
4.
|
An outer join lists all rows that contain a match in both tables.
|
|
|
5.
|
An outer join operator can be included in a FROM clause to list all rows from
one table that do not have a corresponding row in the other table.
|
|
|
6.
|
An outer join operator consists of a minus sign enclosed in parentheses,
(-).
|
|
|
7.
|
The outer join operator is placed on the side of the comparison that is
deficient or is missing the matching rows.
|
|
|
8.
|
The number of joining conditions required to join tables is always one less than
the number of tables being joined.
|
Modified True/False Indicate
whether the statement is true or false. If false, change the identified word or phrase to make
the statement true.
|
|
|
9.
|
A(n) Cartesian Join replicates each row from the first table with every
row from the second table. _________________________
|
|
|
10.
|
A(n) non-equality join is when a table is joined to itself.
_________________________
|
|
|
11.
|
The NATURAL JOIN keywords are appropriate when joining two tables that
have more than one commonly named and defined field. _________________________
|
|
|
12.
|
Equality, non-equality, and self-joins are broadly categorized as outer
joins. _________________________
|
|
|
13.
|
If you are joining five tables in a SELECT statement, five joining
conditions will be required. _________________________
|
Multiple Choice Identify the
choice that best completes the statement or answers the question.
|
|
|
14.
|
A column qualifier is separated from the column using which symbol?
a. | comma (,) | c. | period (.) | b. | plus sign (+) | d. | percent sign
(%) |
|
|
|
15.
|
Which of the following keywords can be used to join two tables that do not
contain a commonly named and defined column?
a. | NATURAL JOIN | c. | JOIN...USING | b. | JOIN...ON | d. | none of the
above |
|
|
|
16.
|
A table alias cannot be assigned in the FROM clause if which of the following
keywords is used to join tables?
a. | NATURAL JOIN | c. | LEFT OUTER JOIN | b. | JOIN...ON | d. | FULL OUTER JOIN |
|
|
|
17.
|
Which of the following can only be used to link tables that have a common
column?
a. | FULL OUTER JOIN | c. | NATURAL JOIN | b. | JOIN...ON | d. | CROSS JOIN |
|
|
|
18.
|
Which of the following set operators will display only the unique results of the
combined SQL statements?
a. | UNION | c. | INTERSECT | b. | UNION ALL | d. | MINUS |
|
Completion Complete each
statement.
|
|
|
19.
|
A column ____________________ indicates the table containing the column being
referenced.
|
|
|
20.
|
Joins are classified as ____________________ joins if the results can only
contain the rows that had matching values in each table, rather than rows being matched with NULL
values.
|
|
|
21.
|
To display rows from one table that do not have a corresponding row in the other
table, you must create a(n) ____________________ join.
|
|
|
22.
|
A(n) ____________________ outer join is necessary when you need rows returned
from either table that do not have a matching record in the other table.
|
|
|
23.
|
The ____________________ set operator is used to display the combined results
returned by multiple SELECT statements.
|
|
|
24.
|
The ____________________ set operator is used to display the rows returned by
both SELECT statements.
|
|
|
25.
|
The ____________________ set operator is used to display the results that were
returned by the first query that were not also returned by the second query.
|