Deck 9: Joining Data From Multiple Tables

Full screen (f)
exit full mode
Question
A table alias is assigned to a table in the WHERE clause.
Use Space or
up arrow
down arrow
to flip the card.
Question
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.
Question
The NATURAL JOIN keywords can be used to link two tables that have a commonly named and defined column.
Question
Equality, non-equality, and self-joins are all categorized as inner joins.
Question
Data stored in multiple tables can be combined through the use of an ORDER BY clause.
Question
Column qualifiers must be included in the WHERE clause if the columns used to join the tables have the same column names.
Question
A column qualifier is separated from the column name with a colon.
Question
An outer join operator consists of a minus sign enclosed in parentheses, (-).
Question
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.
Question
The NATURAL JOIN keywords can be used to create non-equality joins.
Question
A column qualifier is used to indicate the table containing the column being referenced.
Question
If a Cartesian join is used to link table A which contains two rows to table B which contains eight rows, there will be sixteen rows in the results.
Question
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.
Question
An outer join only lists rows that contain a match in both tables.
Question
When a self-join is created, each copy of the table must be assigned a table alias.
Question
A table alias can be assigned in the FROM clause, even when tables are being joined using the NATURAL JOIN keywords.
Question
An inequality join refers to a join that is used to link a table to a copy of itself.
Question
The JOIN keyword is used in the WHERE clause to indicate the tables that should be joined or linked.
Question
A Cartesian join usually results from the user omitting the joining condition that links two or more tables together.
Question
The USING clause must be used with the JOIN keyword when linking tables that do not contain a commonly named column.
Question
A(n)  outer \underline { \text { outer } } join can be created by not including a joining condition in a SELECT statement. _________________________
Question
A(n)  non-equality \underline {\text { non-equality }} join is when a table is joined to itself. _________________________
Question
The  outer join \underline {\text { outer join } } operator is used to combine the results of multiple SELECT statements. _________________________
Question
A cross join between two tables, containing four rows each, will display  eight \underline { \text { eight } } rows in its output. _________________________
Question
A Cartesian join can be created by not including a joining condition in the  WHERE \underline { \text { WHERE }} clause of a SELECT statement. _________________________
Question
The INTERSECT set operator only displays the rows returned by both queries.
Question
A(n)  Cartesian Join \underline {\text { Cartesian Join }} replicates each row from the first table with every row from the second table. _________________________
Question
A full outer join can be created by including an outer join operator on both sides of the linking condition stated in the WHERE clause.
Question
The  outer join \underline {\text { outer join } } operator is placed on the side of the joining condition that references the table containing the deficient rows. _________________________
Question
When using the JOIN...ON keywords to join four tables, both keywords must be repeated four times.
Question
The UNION set operator will not suppress rows that are returned by both queries.
Question
The JOIN keyword must be used in the  WHERE \underline { \text { WHERE } } clause of a SELECT statement. _________________________
Question
The outer join operator is placed on the side of the comparison that is deficient or is missing the matching rows.
Question
The MINUS set operator is used to display rows that were uniquely returned by the first query in the set.
Question
By default, use of the JOIN keyword creates an inner join.
Question
A(n)  non-equality \underline {\text { non-equality }} join is used when there are no equivalent rows of data in the tables that are being joined. _________________________
Question
A(n)  non-equality \underline { \text { non-equality } } join is also known as an equijoin, inner join, or simple join. _________________________
Question
Set operators are used to combine the results of multiple queries.
Question
The number of joining conditions required to join tables is always one less than the number of tables being joined.
Question
Tables can be joined in the  FROM \underline {\text { FROM } } clause or the WHERE clause of a SELECT statement. _________________________
Question
If a table alias is assigned in the  SELECT \underline { \text { SELECT } } clause, it must be used any time the table is referenced in that SQL statement. _________________________
Question
A(n)  inner join \underline { \text { inner join }} will only include rows that have matching rows in the other table. _________________________
Question
If you are joining  five \underline {\text { five } } tables in a SELECT statement, five joining conditions will be required. _________________________
Question
By default, the  JOIN \underline { \text { JOIN } } keyword creates an inner join. _________________________
Question
The  JOIN...USING \underline {\text { JOIN...USING } } keywords are used to join two tables that do not have a commonly named and defined column. _________________________
Question
Equality, non-equality, and self-joins are broadly categorized as  outer \underline {\text { outer }} joins. _________________________
Question
Which of the following is used to create an outer join in a WHERE clause?

A) FULL OUTER JOIN keywords
B) LEFT OUTER JOIN keywords
C) RIGHT OUTER JOIN keywords
D) outer join operator (+)
Question
Which of the following types of joins refers to joining a table to itself?

A) Cartesian join
B) equality join
C) self-join
D) outer join
Question
Which of the following types of joins is created by matching equivalent values in each table?

A) Cartesian join
B) equality join
C) non-equality join
D) outer join
Question
The  ON \underline { \text { ON } } clause can be used only if the tables being joined have a common column with the same name. _________________________
Question
A column qualifier indicates the  column \underline { \text { column } } containing the data being referenced. _________________________
Question
Which of the following types of joins refers to results consisting of each row from the first table being replicated from every row in the second table?

A) outer join
B) non-equality join
C) self-join
D) Cartesian join
Question
When combining the results of two  SELECT \underline { \text { SELECT } } statements with the UNION keyword, duplicate rows are suppressed in the results. _________________________
Question
In a Cartesian join, linking a table that contains 10 rows to a table that contains 9 rows will result in ____ rows being displayed in the output.

A) 19
B) 18
C) 90
D) 89
Question
When combining the results of two SELECT statements with the  MINUS \underline {\text { MINUS } } keyword, duplicate rows are suppressed in the results. _________________________
Question
The JOIN keyword is included in which of the following clauses?

A) SELECT
B) FROM
C) WHERE
D) ORDER BY
Question
If you are joining two tables in a SELECT statement,  three \underline { \text { three } } joining conditions will be required. _________________________
Question
If you are joining four tables in a SELECT statement,  three \underline { \text { three } } joining conditions will be required. _________________________
Question
A table alias is assigned in the  FROM \underline { \text { FROM } } clause. _________________________
Question
In Oracle11g, tables can be linked through which clause(s)?

A) SELECT
B) FROM
C) WHERE
D) both b and c
Question
Which of the following keywords is used to create an equality join?

A) NATURAL JOIN
B) JOIN...ON
C) JOIN...USING
D) all of the above
Question
The outer join operator in the WHERE clause cannot be used with which of the following operators?

A) IN
B) OR
C) AND
D) both a and b
Question
A join based upon a column from each table containing equivalent data is known as a(n) ____.

A) inequality join
B) outer join
C) equality join
D) all of the above
Question
Which of the following set operators will display the results of the combined SQL statements without suppressing duplicate rows?

A) UNION
B) UNION ALL
C) INTERSECT
D) MINUS
Question
<strong>  Structure of the ORDERS table   Structure of the CUSTOMERS table Which of the following queries will return the same results as the following SQL statement? SELECT</strong> A) SELECT customer#, lastname, firstname, order# FROM customers NATURAL JOIN orders; B) SELECT customer#, lastname, firstname, order# FROM customers JOIN orders USING (customer#); C) SELECT c.customer#, lastname, firstname, order# FROM customers c, orders o; D) both a and b <div style=padding-top: 35px>
Structure of the ORDERS table
<strong>  Structure of the ORDERS table   Structure of the CUSTOMERS table Which of the following queries will return the same results as the following SQL statement? SELECT</strong> A) SELECT customer#, lastname, firstname, order# FROM customers NATURAL JOIN orders; B) SELECT customer#, lastname, firstname, order# FROM customers JOIN orders USING (customer#); C) SELECT c.customer#, lastname, firstname, order# FROM customers c, orders o; D) both a and b <div style=padding-top: 35px>
Structure of the CUSTOMERS table
Which of the following queries will return the same results as the following SQL statement? SELECT

A) SELECT customer#, lastname, firstname, order#
FROM customers NATURAL JOIN orders;
B) SELECT customer#, lastname, firstname, order#
FROM customers JOIN orders USING (customer#);
C) SELECT c.customer#, lastname, firstname, order# FROM customers c, orders o;
D) both a and b
Question
Which of the following terms refers to a column with equivalent data that exists in two or more tables?

A) common column
B) equiv-column
C) inner columns
D) simple columns
Question
<strong>  Structure of the ORDERS table   Structure of the CUSTOMERS table Which SQL statement will return the same results as the following SQL statement? SELECT * FROM orders, customers;</strong> A) SELECT * FROM orders CROSS JOIN customers; B) SELECT * FROM orders, customers WHERE orders.customer# = customers.customer#; C) SELECT * FROM orders, customers WHERE orders.customer# > customers.customer#; C)customer#; D) SELECT * FROM o orders , c customers WHERE o.customer# = <div style=padding-top: 35px>
Structure of the ORDERS table
<strong>  Structure of the ORDERS table   Structure of the CUSTOMERS table Which SQL statement will return the same results as the following SQL statement? SELECT * FROM orders, customers;</strong> A) SELECT * FROM orders CROSS JOIN customers; B) SELECT * FROM orders, customers WHERE orders.customer# = customers.customer#; C) SELECT * FROM orders, customers WHERE orders.customer# > customers.customer#; C)customer#; D) SELECT * FROM o orders , c customers WHERE o.customer# = <div style=padding-top: 35px>
Structure of the CUSTOMERS table
Which SQL statement will return the same results as the following SQL statement? SELECT * FROM orders, customers;

A) SELECT * FROM orders CROSS JOIN customers;
B) SELECT * FROM orders, customers
WHERE orders.customer# = customers.customer#;
C) SELECT * FROM orders, customers
WHERE orders.customer# > customers.customer#;
C)customer#;
D) SELECT * FROM o orders , c customers
WHERE o.customer# =
Question
A table alias can consist of a maximum of ____ characters.

A) 12
B) 225
C) 255
D) 30
Question
Which of the following set operators will display only the unique results of the combined SQL statements?

A) UNION
B) UNION ALL
C) INTERSECT
D) MINUS
Question
<strong>  Structure of the ORDERS table   Structure of the CUSTOMERS table Which of the following queries will display data from both the ORDERS and CUSTOMERS tables?</strong> A) SELECT * FROM orders, customers; B) SELECT lastname, firstname, order# FROM orders NATURAL JOIN customers; C) SELECT lastname, firstname, order# FROM orders, customers WHERE orders.customer# = customers.customer#; D) all of the above <div style=padding-top: 35px>
Structure of the ORDERS table
<strong>  Structure of the ORDERS table   Structure of the CUSTOMERS table Which of the following queries will display data from both the ORDERS and CUSTOMERS tables?</strong> A) SELECT * FROM orders, customers; B) SELECT lastname, firstname, order# FROM orders NATURAL JOIN customers; C) SELECT lastname, firstname, order# FROM orders, customers WHERE orders.customer# = customers.customer#; D) all of the above <div style=padding-top: 35px>
Structure of the CUSTOMERS table
Which of the following queries will display data from both the ORDERS and CUSTOMERS tables?

A) SELECT * FROM orders, customers;
B) SELECT lastname, firstname, order#
FROM orders NATURAL JOIN customers;
C) SELECT lastname, firstname, order#
FROM orders, customers
WHERE orders.customer# = customers.customer#;
D) all of the above
Question
A column qualifier is separated from the column using which symbol?

A) comma (,)
B) plus sign (+)
C) period (.)
D) percent sign (%)
Question
Which of the following is an example of assigning "o" as a table alias for the ORDERS table in the FROM clause?

A) FROM o orders, c customers
B) FROM o.orders,
C) FROM orders o, customers c
C)customers
D) FROM orders.o, customers.c
Question
In which of the following examples is the ORDERS table used as a column qualifier?

A) o.order#
B) orders.order#
C) order#.o
D) order#.orders
Question
A table alias cannot be assigned in the FROM clause if which of the following keywords is used to join tables?

A) NATURAL JOIN
B) JOIN...ON
C) LEFT OUTER JOIN
D) FULL OUTER JOIN
Question
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
B) JOIN...ON
C) JOIN...USING
D) none of the above
Question
If you are attempting to join two tables that have multiple common columns, which of the following JOIN keywords should be used to specify how the tables should be linked?

A) OUTER JOIN
B) CROSS JOIN
C) JOIN...USING
D) none of the above
Question
Which of the following can only be used to link tables that have a common column?

A) FULL OUTER JOIN
B) JOIN...ON
C) NATURAL JOIN
D) CROSS JOIN
Question
Which of the following keywords is used to create a Cartesian join?

A) OUTER JOIN
B) CROSS JOIN
C) NATURAL JOIN
D) JOIN...USING
Question
Which of the following set operators can be used to make certain that only the rows returned by both queries are displayed in the results?

A) UNION
B) UNION ALL
C) INTERSECT
D) MINUS
Question
A(n) ____ is used to combine the results of two queries.

A) concatenation operator
B) set operator
C) comparison operator
D) logical operator
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/131
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 9: Joining Data From Multiple Tables
1
A table alias is assigned to a table in the WHERE clause.
False
2
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.
False
3
The NATURAL JOIN keywords can be used to link two tables that have a commonly named and defined column.
True
4
Equality, non-equality, and self-joins are all categorized as inner joins.
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
5
Data stored in multiple tables can be combined through the use of an ORDER BY clause.
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
6
Column qualifiers must be included in the WHERE clause if the columns used to join the tables have the same column names.
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
7
A column qualifier is separated from the column name with a colon.
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
8
An outer join operator consists of a minus sign enclosed in parentheses, (-).
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
9
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.
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
10
The NATURAL JOIN keywords can be used to create non-equality joins.
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
11
A column qualifier is used to indicate the table containing the column being referenced.
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
12
If a Cartesian join is used to link table A which contains two rows to table B which contains eight rows, there will be sixteen rows in the results.
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
13
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.
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
14
An outer join only lists rows that contain a match in both tables.
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
15
When a self-join is created, each copy of the table must be assigned a table alias.
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
16
A table alias can be assigned in the FROM clause, even when tables are being joined using the NATURAL JOIN keywords.
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
17
An inequality join refers to a join that is used to link a table to a copy of itself.
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
18
The JOIN keyword is used in the WHERE clause to indicate the tables that should be joined or linked.
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
19
A Cartesian join usually results from the user omitting the joining condition that links two or more tables together.
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
20
The USING clause must be used with the JOIN keyword when linking tables that do not contain a commonly named column.
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
21
A(n)  outer \underline { \text { outer } } join can be created by not including a joining condition in a SELECT statement. _________________________
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
22
A(n)  non-equality \underline {\text { non-equality }} join is when a table is joined to itself. _________________________
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
23
The  outer join \underline {\text { outer join } } operator is used to combine the results of multiple SELECT statements. _________________________
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
24
A cross join between two tables, containing four rows each, will display  eight \underline { \text { eight } } rows in its output. _________________________
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
25
A Cartesian join can be created by not including a joining condition in the  WHERE \underline { \text { WHERE }} clause of a SELECT statement. _________________________
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
26
The INTERSECT set operator only displays the rows returned by both queries.
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
27
A(n)  Cartesian Join \underline {\text { Cartesian Join }} replicates each row from the first table with every row from the second table. _________________________
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
28
A full outer join can be created by including an outer join operator on both sides of the linking condition stated in the WHERE clause.
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
29
The  outer join \underline {\text { outer join } } operator is placed on the side of the joining condition that references the table containing the deficient rows. _________________________
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
30
When using the JOIN...ON keywords to join four tables, both keywords must be repeated four times.
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
31
The UNION set operator will not suppress rows that are returned by both queries.
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
32
The JOIN keyword must be used in the  WHERE \underline { \text { WHERE } } clause of a SELECT statement. _________________________
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
33
The outer join operator is placed on the side of the comparison that is deficient or is missing the matching rows.
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
34
The MINUS set operator is used to display rows that were uniquely returned by the first query in the set.
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
35
By default, use of the JOIN keyword creates an inner join.
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
36
A(n)  non-equality \underline {\text { non-equality }} join is used when there are no equivalent rows of data in the tables that are being joined. _________________________
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
37
A(n)  non-equality \underline { \text { non-equality } } join is also known as an equijoin, inner join, or simple join. _________________________
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
38
Set operators are used to combine the results of multiple queries.
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
39
The number of joining conditions required to join tables is always one less than the number of tables being joined.
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
40
Tables can be joined in the  FROM \underline {\text { FROM } } clause or the WHERE clause of a SELECT statement. _________________________
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
41
If a table alias is assigned in the  SELECT \underline { \text { SELECT } } clause, it must be used any time the table is referenced in that SQL statement. _________________________
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
42
A(n)  inner join \underline { \text { inner join }} will only include rows that have matching rows in the other table. _________________________
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
43
If you are joining  five \underline {\text { five } } tables in a SELECT statement, five joining conditions will be required. _________________________
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
44
By default, the  JOIN \underline { \text { JOIN } } keyword creates an inner join. _________________________
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
45
The  JOIN...USING \underline {\text { JOIN...USING } } keywords are used to join two tables that do not have a commonly named and defined column. _________________________
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
46
Equality, non-equality, and self-joins are broadly categorized as  outer \underline {\text { outer }} joins. _________________________
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
47
Which of the following is used to create an outer join in a WHERE clause?

A) FULL OUTER JOIN keywords
B) LEFT OUTER JOIN keywords
C) RIGHT OUTER JOIN keywords
D) outer join operator (+)
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
48
Which of the following types of joins refers to joining a table to itself?

A) Cartesian join
B) equality join
C) self-join
D) outer join
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
49
Which of the following types of joins is created by matching equivalent values in each table?

A) Cartesian join
B) equality join
C) non-equality join
D) outer join
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
50
The  ON \underline { \text { ON } } clause can be used only if the tables being joined have a common column with the same name. _________________________
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
51
A column qualifier indicates the  column \underline { \text { column } } containing the data being referenced. _________________________
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
52
Which of the following types of joins refers to results consisting of each row from the first table being replicated from every row in the second table?

A) outer join
B) non-equality join
C) self-join
D) Cartesian join
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
53
When combining the results of two  SELECT \underline { \text { SELECT } } statements with the UNION keyword, duplicate rows are suppressed in the results. _________________________
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
54
In a Cartesian join, linking a table that contains 10 rows to a table that contains 9 rows will result in ____ rows being displayed in the output.

A) 19
B) 18
C) 90
D) 89
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
55
When combining the results of two SELECT statements with the  MINUS \underline {\text { MINUS } } keyword, duplicate rows are suppressed in the results. _________________________
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
56
The JOIN keyword is included in which of the following clauses?

A) SELECT
B) FROM
C) WHERE
D) ORDER BY
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
57
If you are joining two tables in a SELECT statement,  three \underline { \text { three } } joining conditions will be required. _________________________
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
58
If you are joining four tables in a SELECT statement,  three \underline { \text { three } } joining conditions will be required. _________________________
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
59
A table alias is assigned in the  FROM \underline { \text { FROM } } clause. _________________________
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
60
In Oracle11g, tables can be linked through which clause(s)?

A) SELECT
B) FROM
C) WHERE
D) both b and c
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
61
Which of the following keywords is used to create an equality join?

A) NATURAL JOIN
B) JOIN...ON
C) JOIN...USING
D) all of the above
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
62
The outer join operator in the WHERE clause cannot be used with which of the following operators?

A) IN
B) OR
C) AND
D) both a and b
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
63
A join based upon a column from each table containing equivalent data is known as a(n) ____.

A) inequality join
B) outer join
C) equality join
D) all of the above
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
64
Which of the following set operators will display the results of the combined SQL statements without suppressing duplicate rows?

A) UNION
B) UNION ALL
C) INTERSECT
D) MINUS
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
65
<strong>  Structure of the ORDERS table   Structure of the CUSTOMERS table Which of the following queries will return the same results as the following SQL statement? SELECT</strong> A) SELECT customer#, lastname, firstname, order# FROM customers NATURAL JOIN orders; B) SELECT customer#, lastname, firstname, order# FROM customers JOIN orders USING (customer#); C) SELECT c.customer#, lastname, firstname, order# FROM customers c, orders o; D) both a and b
Structure of the ORDERS table
<strong>  Structure of the ORDERS table   Structure of the CUSTOMERS table Which of the following queries will return the same results as the following SQL statement? SELECT</strong> A) SELECT customer#, lastname, firstname, order# FROM customers NATURAL JOIN orders; B) SELECT customer#, lastname, firstname, order# FROM customers JOIN orders USING (customer#); C) SELECT c.customer#, lastname, firstname, order# FROM customers c, orders o; D) both a and b
Structure of the CUSTOMERS table
Which of the following queries will return the same results as the following SQL statement? SELECT

A) SELECT customer#, lastname, firstname, order#
FROM customers NATURAL JOIN orders;
B) SELECT customer#, lastname, firstname, order#
FROM customers JOIN orders USING (customer#);
C) SELECT c.customer#, lastname, firstname, order# FROM customers c, orders o;
D) both a and b
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
66
Which of the following terms refers to a column with equivalent data that exists in two or more tables?

A) common column
B) equiv-column
C) inner columns
D) simple columns
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
67
<strong>  Structure of the ORDERS table   Structure of the CUSTOMERS table Which SQL statement will return the same results as the following SQL statement? SELECT * FROM orders, customers;</strong> A) SELECT * FROM orders CROSS JOIN customers; B) SELECT * FROM orders, customers WHERE orders.customer# = customers.customer#; C) SELECT * FROM orders, customers WHERE orders.customer# > customers.customer#; C)customer#; D) SELECT * FROM o orders , c customers WHERE o.customer# =
Structure of the ORDERS table
<strong>  Structure of the ORDERS table   Structure of the CUSTOMERS table Which SQL statement will return the same results as the following SQL statement? SELECT * FROM orders, customers;</strong> A) SELECT * FROM orders CROSS JOIN customers; B) SELECT * FROM orders, customers WHERE orders.customer# = customers.customer#; C) SELECT * FROM orders, customers WHERE orders.customer# > customers.customer#; C)customer#; D) SELECT * FROM o orders , c customers WHERE o.customer# =
Structure of the CUSTOMERS table
Which SQL statement will return the same results as the following SQL statement? SELECT * FROM orders, customers;

A) SELECT * FROM orders CROSS JOIN customers;
B) SELECT * FROM orders, customers
WHERE orders.customer# = customers.customer#;
C) SELECT * FROM orders, customers
WHERE orders.customer# > customers.customer#;
C)customer#;
D) SELECT * FROM o orders , c customers
WHERE o.customer# =
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
68
A table alias can consist of a maximum of ____ characters.

A) 12
B) 225
C) 255
D) 30
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
69
Which of the following set operators will display only the unique results of the combined SQL statements?

A) UNION
B) UNION ALL
C) INTERSECT
D) MINUS
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
70
<strong>  Structure of the ORDERS table   Structure of the CUSTOMERS table Which of the following queries will display data from both the ORDERS and CUSTOMERS tables?</strong> A) SELECT * FROM orders, customers; B) SELECT lastname, firstname, order# FROM orders NATURAL JOIN customers; C) SELECT lastname, firstname, order# FROM orders, customers WHERE orders.customer# = customers.customer#; D) all of the above
Structure of the ORDERS table
<strong>  Structure of the ORDERS table   Structure of the CUSTOMERS table Which of the following queries will display data from both the ORDERS and CUSTOMERS tables?</strong> A) SELECT * FROM orders, customers; B) SELECT lastname, firstname, order# FROM orders NATURAL JOIN customers; C) SELECT lastname, firstname, order# FROM orders, customers WHERE orders.customer# = customers.customer#; D) all of the above
Structure of the CUSTOMERS table
Which of the following queries will display data from both the ORDERS and CUSTOMERS tables?

A) SELECT * FROM orders, customers;
B) SELECT lastname, firstname, order#
FROM orders NATURAL JOIN customers;
C) SELECT lastname, firstname, order#
FROM orders, customers
WHERE orders.customer# = customers.customer#;
D) all of the above
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
71
A column qualifier is separated from the column using which symbol?

A) comma (,)
B) plus sign (+)
C) period (.)
D) percent sign (%)
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
72
Which of the following is an example of assigning "o" as a table alias for the ORDERS table in the FROM clause?

A) FROM o orders, c customers
B) FROM o.orders,
C) FROM orders o, customers c
C)customers
D) FROM orders.o, customers.c
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
73
In which of the following examples is the ORDERS table used as a column qualifier?

A) o.order#
B) orders.order#
C) order#.o
D) order#.orders
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
74
A table alias cannot be assigned in the FROM clause if which of the following keywords is used to join tables?

A) NATURAL JOIN
B) JOIN...ON
C) LEFT OUTER JOIN
D) FULL OUTER JOIN
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
75
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
B) JOIN...ON
C) JOIN...USING
D) none of the above
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
76
If you are attempting to join two tables that have multiple common columns, which of the following JOIN keywords should be used to specify how the tables should be linked?

A) OUTER JOIN
B) CROSS JOIN
C) JOIN...USING
D) none of the above
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
77
Which of the following can only be used to link tables that have a common column?

A) FULL OUTER JOIN
B) JOIN...ON
C) NATURAL JOIN
D) CROSS JOIN
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
78
Which of the following keywords is used to create a Cartesian join?

A) OUTER JOIN
B) CROSS JOIN
C) NATURAL JOIN
D) JOIN...USING
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
79
Which of the following set operators can be used to make certain that only the rows returned by both queries are displayed in the results?

A) UNION
B) UNION ALL
C) INTERSECT
D) MINUS
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
80
A(n) ____ is used to combine the results of two queries.

A) concatenation operator
B) set operator
C) comparison operator
D) logical operator
Unlock Deck
Unlock for access to all 131 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 131 flashcards in this deck.