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.

    View Answer

    Workspace

    Discuss Discuss in Forum


  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.

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  6. A.

     One

    B.

     Two

    C.

     Three

    D.

     All of the above.

    View Answer

    Workspace

    Discuss Discuss in Forum


  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

    View Answer

    Workspace

    Discuss Discuss in Forum


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

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  12. A.

     True

    B.

     False

    View Answer

    Workspace

    Discuss Discuss in Forum


  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

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  16. A.

     True

    B.

     False

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. Subqueries can be nested multiple times.

  18. A.

     True

    B.

     False

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  20. A.

     True

    B.

     False

    View Answer

    Workspace

    Discuss Discuss in Forum