Exam 6: Advanced SQL

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

An SQL query that implements an outer join will return rows that do not have matching values in common columns.

(True/False)
4.9/5
(76)

The UNION clause is used to:

(Multiple Choice)
4.8/5
(95)

What strategies can be used to write queries that run more efficiently?

(Essay)
4.8/5
(80)

The following code is an example of a(n): SELECT Customer_T.CustomerID, Order_T.CustomerID, CustomerName, OrderID FROM Customer_T, Order_T WHERE Customer_T.CustomerID = Order_T.CustomerID;

(Multiple Choice)
5.0/5
(84)

Triggers can be used to ensure referential integrity, enforce business rules, create audit trails, and replicate tables, but cannot call other triggers.

(True/False)
4.7/5
(93)

In SQL, a(n) ________ subquery is a type of subquery in which processing the inner query depends on data from the outer query.

(Multiple Choice)
4.7/5
(64)

A routine is a named set of SQL statements that are considered when a data modification occurs.

(True/False)
4.8/5
(75)

A procedure is run by calling it by its name.

(True/False)
4.8/5
(73)

What is a derived table? When is it used? Can you describe any situations where you would have to use it over a subquery in the WHERE clause?

(Essay)
5.0/5
(75)

SQL allows one to calculate linear regressions, moving averages, and correlations without moving the data outside of the database.

(True/False)
4.8/5
(73)

In which of the following situations would one have to use an outer join in order to obtain the desired results?

(Multiple Choice)
4.8/5
(86)

One major advantage of the outer join is that:

(Multiple Choice)
4.8/5
(67)

The following query will execute without errors. SELECT Customer.Customer_Name, Salesman.Sales_Quota FROM Customer WHERE Customer.Salesman_ID = (SELECT Salesman_ID WHERE Lname = 'SMITH');

(True/False)
4.9/5
(87)

EXISTS will take a value of ________ if the subquery returns an intermediate results table which contains one or more rows.

(Multiple Choice)
4.9/5
(76)

Correlated subqueries are less efficient than queries that do not use nesting.

(True/False)
4.9/5
(74)
Showing 81 - 95 of 95
close modal

Filters

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