Home / CSE / Database System 2 - CS :: Advanced SQL

CSE :: Database System 2 - CS

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

  2. 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.


  3. Which of the following is a correlated subquery?

  4. 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.


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

  6. A.

     One

    B.

     Two

    C.

     Three

    D.

     All of the above.


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

  8. A.

     Equi-join

    B.

     Natural join

    C.

     Outer join

    D.

     Cartesian join


  9. Which of the following is true concerning triggers?

  10. 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).


  11. Triggers are stored blocks of code that have to be called in order to operate.

  12. A.

     True

    B.

     False


  13. The joining technique is useful when data from several relations are to be retrieved and displayed and the relationships are not necessarily nested.

  14. A.

     True

    B.

     False


  15. There should be one condition within the WHERE clause for each pair of tables being joined.

  16. A.

     True

    B.

     False


  17. Subqueries can be nested multiple times.

  18. A.

     True

    B.

     False


  19. The code to create triggers and routines is stored in only one location and is administered centrally.

  20. A.

     True

    B.

     False