Exam 6: Advanced SQL

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

Triggers have three parts: the event, the condition, and the action.

(True/False)
4.7/5
(72)

What would the following view contain for values? Create view CustomerOrders as Select CustID, Count(*) as TotOrders, Sum(ordertotal) as Value From customer inner join sale on customer.customer_id = sale.customer_id;

(Multiple Choice)
4.9/5
(76)

When a user creates a virtual table it is called a(n):

(Multiple Choice)
4.9/5
(87)

The joining condition of an equi-join is based upon an equality.

(True/False)
4.7/5
(83)

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

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

(Multiple Choice)
4.7/5
(71)

A natural join is the same as an equi-join, except that it is performed over matching columns that have been defined with the same name, and one of the duplicate columns is eliminated.

(True/False)
4.8/5
(72)

Discuss the differences between an equi-join, natural join, and outer join.

(Essay)
4.8/5
(95)

IF-THEN-ELSE logical processing cannot be accomplished within an SQL statement.

(True/False)
4.8/5
(83)

Constraints are a special case of triggers.

(True/False)
4.8/5
(85)

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

A type of query that is placed within a WHERE or HAVING clause of another query is called a:

(Multiple Choice)
5.0/5
(73)

EXISTS takes a value of false if the subquery returns an intermediate result set.

(True/False)
4.8/5
(73)

User-defined functions can improve system performance because they will be processed as sets rather than individually, thus reducing system overhead.

(True/False)
4.9/5
(81)

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

(True/False)
4.8/5
(77)

Using an outer join produces this information: rows that do not have matching values in common columns are not included in the result table.

(True/False)
4.9/5
(68)

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

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

(True/False)
4.8/5
(89)

The natural join is very rarely used.

(True/False)
4.9/5
(88)

A type of join between three tables is called a(n):

(Multiple Choice)
4.8/5
(86)
Showing 61 - 80 of 95
close modal

Filters

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