Exam 6: Advanced SQL

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

There is a special operation in SQL to join a table to itself.

(True/False)
4.9/5
(79)

The following code is an example of a correlated subquery. SELECT CustomerName, CustomerAddress, CustomerCity, CustomerState, CustomerPostalCode FROM Customer_T WHERE Customer_T.CustomerID = (SELECT Order_T.CustomerID FROM Order_T WHERE OrderID = 1008);

(True/False)
4.9/5
(78)

SQL provides the ________ technique, which involves placing an inner query within the WHERE or HAVING clause of an outer query.

(Multiple Choice)
4.9/5
(86)

SQL-invoked routines can be:

(Multiple Choice)
4.8/5
(80)

All of the following are advantages of SQL-invoked routines EXCEPT:

(Multiple Choice)
4.8/5
(78)

The ________ DBA view shows information about all users of the database in Oracle.

(Multiple Choice)
4.9/5
(74)

The advantages of SQL-invoked routines are flexibility, efficiency, sharability, and applicability.

(True/False)
4.9/5
(75)

A function has only input parameters but can return multiple values.

(True/False)
5.0/5
(81)

What is the difference between a trigger and a routine?

(Essay)
4.9/5
(73)

The ________ operator is used to combine the output from multiple queries into a single result table.

(Multiple Choice)
4.9/5
(85)

A materialized view is/are:

(Multiple Choice)
4.9/5
(75)

The following SQL statement is an example of a correlated subquery. SELECT First_Name, Last_Name, Total_Sales FROM Salesman s1 WHERE Total_Sales > all (SELECT Total_Sales FROM Salesman s2 WHERE s1.Salesman_ID != s2.Salesman_ID);

(True/False)
4.9/5
(79)

The UNION clause is used to combine the output from multiple queries into a single result table.

(True/False)
4.8/5
(82)

A subquery in which processing the inner query depends on data from the outer query is called a codependent query.

(True/False)
4.9/5
(84)

The following code would include: SELECT Customer_T.CustomerID,CustomerName, OrderID FROM Customer_T RIGHT OUTER JOIN Order_T ON Customer_T.CustomerID = Order_T.CustomerID;

(Multiple Choice)
4.8/5
(90)

MULTISET is similar to the table datatype.

(True/False)
4.8/5
(73)

Establishing IF-THEN-ELSE logical processing within an SQL statement can be accomplished by:

(Multiple Choice)
4.9/5
(88)

In order to find out what customers have not placed an order for a particular item, one might use the NOT qualifier along with the IN qualifier.

(True/False)
4.8/5
(84)

Combining a table with itself results in a faster query.

(True/False)
4.8/5
(77)

Discuss some of the SQL:2011 and SQL:2016 enhancements and extensions to SQL.

(Essay)
4.9/5
(81)
Showing 41 - 60 of 95
close modal

Filters

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