Exam 6: Advanced SQL
Exam 1: The Database Environment and Development Process119 Questions
Exam 2: Modeling Data in the Organization102 Questions
Exam 3: The Enhanced E-R Model102 Questions
Exam 4: Logical Database Design and the Relational Model101 Questions
Exam 5: Introduction to SQL102 Questions
Exam 6: Advanced SQL95 Questions
Exam 7: Databases in Applications93 Questions
Exam 8: Physical Database Design and Database Infrastructure167 Questions
Exam 9: Data Warehousing and Data Integration150 Questions
Exam 10: Big Data Technologies69 Questions
Exam 11: Analytics and Its Implications32 Questions
Exam 12: Data and Database Administration With Focus on Data Quality66 Questions
Exam 13: Distributed Databases100 Questions
Exam 14: Object-Oriented Data Modeling104 Questions
Select questions type
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)
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)
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)
Showing 61 - 80 of 95
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)