Exam 5: Multiple Table Queries
Exam 1: Introduction to Kimtay Pet Supplies and Staywell Student Accommodation Databases36 Questions
Exam 2: Database Design Fundamentals33 Questions
Exam 3: Creating Tables35 Questions
Exam 4: Single Table Queries35 Questions
Exam 5: Multiple Table Queries34 Questions
Exam 6: Updating Data34 Questions
Exam 7: Database Administration35 Questions
Exam 8: Functions Procedures and Triggers35 Questions
Select questions type
In which type of join are all rows from the table listed first in the query included, regardless of whether they match rows from the table listed second in the query?
Free
(Multiple Choice)
4.8/5
(31)
Correct Answer:
B
What is the term for the letter S or the letter D in the following query?
SELECT S.SERVER_ID, S.LAST_NAME, D.DINER_ID, D.LAST_NAME
FROM SERVER S, DINER D
WHERE (S.SERVER_ID = D.SERVER_ID)
Free
(Multiple Choice)
4.8/5
(34)
Correct Answer:
A
To create a condition that is true if one or more rows are obtained when the subquery is executed, you can precede that subquery with which operator?
Free
(Multiple Choice)
4.9/5
(38)
Correct Answer:
D
You can use the EXISTS operator to retrieve data from more than one table.
(True/False)
4.8/5
(39)
Nina is writing a MySQL query to list the descriptions of items in the CUPCAKES table, which are identified by PROD_ID values. The ORDER_LINE table includes product and quantity information from bakery orders, which are identified by ORDER_NUM values. What can she add to the following query to limit the list to descriptions of cupcakes purchased through order 342? SELECT DESCRIPTION FROM CUPCAKES WHERE
(Multiple Choice)
4.8/5
(23)
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.
(True/False)
4.7/5
(40)
Which element belongs in the blank if you want to display data from all rows with a credit limit greater than the credit limit of one or more category B cardholders? WHERE (CREDIT_LIMIT > _____ (SELECT CREDIT_LIMIT FROM CARDHOLDER WHERE CATEGORY = 'B'))
(Multiple Choice)
4.8/5
(32)
What steps should you take to construct a detailed query in a step-by-step fashion?
(Essay)
4.9/5
(36)
You can use the ALL and ANY operators with subqueries to produce a single column of numbers.
(True/False)
4.9/5
(37)
To retrieve data from multiple tables in a query, you can use a subquery containing the _____.
(Multiple Choice)
4.7/5
(40)
You create an alias by typing the name of the table, pressing the _____, and then typing the name of the alias.
(Multiple Choice)
4.9/5
(34)
You can use the IN operator to retrieve data from multiple tables.
(True/False)
4.8/5
(37)
To qualify a column name, precede the name of the column with the name of the table, followed by a(n) _____.
(Multiple Choice)
4.8/5
(30)
Why do you use the ANY and ALL operators? What is the difference between the two operators?
(Essay)
4.7/5
(39)
The ____ of two tables is the set of all rows that are in the first table but that are not in the second table.
(Multiple Choice)
4.9/5
(30)
What steps should you take to construct the SQL command to join (relate) tables?
(Essay)
4.8/5
(32)
The _____ of two tables is a table containing all rows that are in both tables.
(Multiple Choice)
4.9/5
(39)
Showing 1 - 20 of 34
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)