Home / CSE / Database System 2 - CS :: SQL for Database Construction

CSE :: Database System 2 - CS

  1. When using the SQL INSERT statement:

  2. A.

     rows can be modified according to criteria only.

    B.

     rows cannot be copied in mass from one table to another only.

    C.

     rows can be inserted into a table only one at a time only.

    D.

     rows can either be inserted into a table one at a time or in groups.

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. What is not an advantage of stored procedures?

  4. A.

     Greater security

    B.

     SQL can be optimized

    C.

     Code sharing

    D.

     Increased network traffic

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. A reason for using an SQL view to hide columns is:

  6. A.

     to simplify a result only.

    B.

     to prevent the display of sensitive data only.

    C.

     to accomplish both of the above.

    D.

     None of the above are reasons for using an SQL view.

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. Which of the following is an SQL trigger supported by Oracle?

  8. A.

     BEFORE

    B.

     INSTEAD OF

    C.

     AFTER

    D.

     All of the above.

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. The SQL ALTER statement can be used to:

  10. A.

     change the table structure.

    B.

     change the table data.

    C.

     add rows to the table.

    D.

     delete rows from the table.

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. What SQL structure is used to limit column values of a table?

  12. A.

     The LIMIT constraint

    B.

     The CHECK constraint

    C.

     The VALUE constraint

    D.

     None of the above is correct.

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. Which is NOT one of the most common types of SQL CHECK constraints?

  14. A.

     System date

    B.

     Range checks

    C.

     Lists of values

    D.

     Comparing one column value to another within the same table

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. What is an advantage of placing computations in SQL views?

  16. A.

     To save users from having to write an expression.

    B.

     To ensure that the results are consistent.

    C.

     To accomplish both of the above.

    D.

     None of the above is correct - computations cannot be placed in a view.

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. Views constructed from SQL SELECT statements that conform to the SQL-92 standard may not contain:

  18. A.

     GROUP BY

    B.

     WHERE

    C.

     ORDER BY

    D.

     FROM

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. The SQL statement used to create a view is CREATE VIEW.

  20. A.

     True

    B.

     False

    View Answer

    Workspace

    Discuss Discuss in Forum