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

CSE :: Database System 2 - CS

  1. What type of join is needed when you wish to include rows that do not have matching values?

  2. A.

     Equi-join

    B.

     Natural join

    C.

     Outer join

    D.

     All of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. What type of join is needed when you wish to return rows that do have matching values?

  4. A.

     Equi-join

    B.

     Natural join

    C.

     Outer join

    D.

     All of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. Which of the following is true concerning a procedure?

  6. A.

     You do not create them with SQL.

    B.

     They do not need to have a unique name.

    C.

     They include procedural and SQL statements.

    D.

     They are the same thing as a function.

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. A CASE SQL statement is which of the following?

  8. A.

     A way to establish an IF-THEN-ELSE in SQL.

    B.

     A way to establish a loop in SQL.

    C.

     A way to establish a data definition in SQL.

    D.

     All of the above.

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. Which of the following statements is true concerning routines and triggers?

  10. A.

     Both consist of procedural code.

    B.

     Both have to be called to operate.

    C.

     Both run automatically.

    D.

     Both are stored in the database.

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. Which of the following is one of the basic approaches for joining tables?

  12. A.

     Subqueries

    B.

     Union Join

    C.

     Natural join

    D.

     All of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. Which of the following is true concerning systems information in an RDBMS?

  14. A.

     RDBMS store database definition information in system-created tables.

    B.

     This information can be accessed using SQL.

    C.

     This information often cannot be updated by a user.

    D.

     All of the above.

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. 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 WHERE CUSTOMER_T. CUSTOMER_ID = ORDER_T. CUSTOMER_ID

  16. A.

     Equi-join

    B.

     Natural join

    C.

     Outer join

    D.

     Cartesian join

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. Embedded SQL is which of the following?

  18. A.

     Hard-coded SQL statements in a program language such as Java.

    B.

     The process of making an application capable of generating specific SQL code on the fly.

    C.

     Hard-coded SQL statements in a procedure.

    D.

     Hard-coded SQL statements in a trigger.

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. A UNION query is which of the following?

  20. A.

     Combines the output from no more than two queries and must include the same number of columns.

    B.

     Combines the output from no more than two queries and does not include the same number of columns.

    C.

     Combines the output from multiple queries and must include the same number of columns.

    D.

     Combines the output from multiple queries and does not include the same number of columns.

    View Answer

    Workspace

    Discuss Discuss in Forum