Filters
Question type

Study Flashcards

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

A) True
B) False

Correct Answer

verifed

verified

Combining a table with itself results in a faster query.

A) True
B) False

Correct Answer

verifed

verified

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


A) grouping
B) joining
C) subquery
D) union

E) All of the above
F) A) and D)

Correct Answer

verifed

verified

SQL-invoked routines can be:


A) part of a DDL statement.
B) functions or procedures.
C) part of a DCL statement.
D) contained within a CREATE statement.

E) A) and B)
F) None of the above

Correct Answer

verifed

verified

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;


A) all rows of the Order_T Table regardless of matches with the Customer_T Table.
B) all rows of the Customer_T Table regardless of matches with the Order_T Table.
C) only rows that match both Customer_T and Order_T Tables.
D) only rows that don't match both Customer_T and Order_T Tables.

E) A) and D)
F) C) and D)

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

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


A) DBA_USERS
B) USERS
C) DBA_VIEWS
D) DBA_INDEXES

E) None of the above
F) A) and B)

Correct Answer

verifed

verified

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


A) INTERSECT
B) DIVIDE
C) COLLATE
D) UNION

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

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);

A) True
B) False

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

Several built-in functions were added in...

View Answer

A materialized view is/are:


A) a virtual table created dynamically on request by a user.
B) an in-line query.
C) copies or replica of data based on queries.
D) always an exact copy of the source table.

E) B) and C)
F) A) and D)

Correct Answer

verifed

verified

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);

A) True
B) False

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

MULTISET is similar to the table datatype.

A) True
B) False

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

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


A) flexibility.
B) efficiency.
C) sharability.
D) security.

E) A) and D)
F) A) and B)

Correct Answer

verifed

verified

What is the difference between a trigger and a routine?

Correct Answer

verifed

verified

A trigger, once written and compiled, si...

View Answer

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


A) using the if-then-else construct.
B) using the immediate if statement.
C) using the CASE key word in a statement.
D) using a subquery.

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

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.

A) True
B) False

Correct Answer

verifed

verified

Showing 41 - 60 of 95

Related Exams

Show Answer