Advanced SQL – General Questions

11. Which of the following statements is true concerning subqueries?

A. Involves the use of an inner and outer query.
B. Cannot return the same result as a query that is not a subquery.
C. Does not start with the word SELECT.
D. All of the above.

Correct Answer: A. Involves the use of an inner and outer query.

12. Which of the following is a correlated subquery?

A. Uses the result of an inner query to determine the processing of an outer query.
B. Uses the result of an outer query to determine the processing of an inner query.
C. Uses the result of an inner query to determine the processing of an inner query.
D. Uses the result of an outer query to determine the processing of an outer query

Correct Answer: B. Uses the result of an outer query to determine the processing of an inner query.

13. How many tables may be included with a join?

A. One
B. Two
C. Three
D. All of the above.

Correct Answer: D. All of the above.

14. The following SQL is which type of join: SELECT CUSTOMER_T. CUSTOMER_ID, ORDER_T. CUSTOMER_ID, NAME, ORDER_ID FROM CUSTOMER_T,ORDER_T ;

A. Equi-join
B. Natural join
C. Outer join
D. Cartesian join

Correct Answer: D. Cartesian join

15. Which of the following is true concerning triggers?

A. You do not create them with SQL.
B. They execute against only some applications that access a database.
C. They have an event, condition, and action.
D. They cannot cascade (cause another trigger to fire).

Correct Answer: C. They have an event, condition, and action.

Leave A Comment?

2 × five =