Exam 7: Advanced SQL

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

MULTISET is similar to the table datatype.

(True/False)
4.9/5
(82)

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

(True/False)
4.9/5
(83)

What is a self-join and how is it used?

(Essay)
4.8/5
(81)

The following code would include: SELECT Customer_T.CustomerID, Order_T.CustomerID, CustomerName, OrderID FROM Customer_T, Order_T WHERE Customer_T.CustomerID = Order_T. CustomerID;

(Multiple Choice)
4.8/5
(82)

________ differs from array because it can contain duplicates.

(Multiple Choice)
4.9/5
(75)

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

(True/False)
4.7/5
(73)

A ________ is a temporary table used in the FROM clause of an SQL query.

(Multiple Choice)
4.8/5
(84)

What results would the following SQL statement produce? select owner, table_name From dba_tables Where table_name = 'CUSTOMER';

(Multiple Choice)
4.9/5
(70)

Explicit commands to manage transactions are needed when:

(Multiple Choice)
4.8/5
(85)

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.9/5
(78)

If the DBA wishes to describe all tables in the database, which data dictionary view should be accessed in Oracle?

(Multiple Choice)
4.8/5
(62)

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

(Multiple Choice)
4.9/5
(92)

Explain how to combine queries using the UNION clause.

(Essay)
4.8/5
(76)

The following queries produce the same results. Select DISTINCT customer_name, customer_city from customer, salesman where customer.salesman_id = salesman.salesman_id and salesman.lname = 'SMITH'; select customer_name, customer_city from customer where customer.salesman_id = (select salesman_id from salesman where lname = 'SMITH');

(True/False)
4.8/5
(74)

All of the following are part of the coding structure for triggers EXCEPT:

(Multiple Choice)
4.8/5
(78)

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

(True/False)
4.9/5
(81)

RANK and DENSE-RANK are examples of:

(Multiple Choice)
5.0/5
(87)

A join that is based upon equality between values in two common columns with the same name and where one duplicate column has been removed is called a(n):

(Multiple Choice)
4.8/5
(78)

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
(79)

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.8/5
(75)
Showing 61 - 80 of 107
close modal

Filters

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