Exam 5: Multiple-Table Queries

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

There are three set operations: union, intersection, difference. Define each of these operations. Which one(s)does MySQL support?

Free
(Essay)
4.9/5
(34)
Correct Answer:
Verified

The union of two tables creates a temporary table containing every row that is in either the first table, the second table, or both tables. The intersection of two tables creates a temporary table containing all rows that are in both tables. the difference of two tables creates a temporary table containing the set of all rows that are in the first table but that are not in the second table. MySQL only supports the UNION operator.

To qualify a column name, precede the name of the column with the name of the table, followed by a(n)____.

Free
(Multiple Choice)
4.9/5
(35)
Correct Answer:
Verified

B

Occasionally, a self-join might involve the primary key of a table.

Free
(True/False)
4.8/5
(32)
Correct Answer:
Verified

True

It is permissible to qualify all column names in a query.

(True/False)
4.9/5
(40)

Sometimes you need to list all the rows from one of the tables in a join, regardless of whether they match any rows in the other table. This type of join is called a(n)____________________ join.

(Short Answer)
4.9/5
(27)

When the innermost subquery is evaluated, a permanent table is produced.

(True/False)
4.9/5
(32)

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.

(Multiple Choice)
4.9/5
(30)

MySQL does not support the MINUS operator.

(True/False)
4.8/5
(41)

In a(n)____ join, all rows from both tables are included regardless of whether they match rows from the other table..

(Multiple Choice)
4.8/5
(41)

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.

(Multiple Choice)
4.9/5
(33)

There is only one approach to joining tables.

(True/False)
4.9/5
(28)

Describe the types of outer joins.

(Essay)
4.9/5
(36)

You can join tables by using a condition in the WHERE clause.

(True/False)
5.0/5
(27)

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.

(Short Answer)
4.9/5
(30)

If the SQL implementation truly supports the union operation, it will remove any duplicate ____________________ automatically.

(Short Answer)
4.8/5
(42)

When tables are listed in the FROM clause, you can give each table a(n)____________________, or an alternate name.

(Short Answer)
4.9/5
(35)

You must join tables on matching columns.

(True/False)
4.9/5
(32)

You can join tables by using a condition in the ____ clause.

(Multiple Choice)
4.9/5
(31)

If you precede a subquery by the ____________________ operator, the condition is true only if it satisfies one or more values produced by the subquery.

(Short Answer)
4.7/5
(44)

One reason for using an alias is simplicity.

(True/False)
4.7/5
(33)
Showing 1 - 20 of 75
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)