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

CSE :: Database System 2 - CS

  1. The SQL command to create a table is:

  2. A.

     MAKE TABLE

    B.

     ALTER TABLE

    C.

     DEFINE TABLE

    D.

     CREATE TABLE

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. A ________ is a stored program that is attached to a table or a view.

  4. A.

     pseudofile

    B.

     embedded SELECT statement

    C.

     trigger

    D.

     None of the above is correct.

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. The DROP TABLE statement:

  6. A.

     deletes the table structure only.

    B.

     deletes the table structure along with the table data.

    C.

     works whether or not referential integrity constraints would be violated.

    D.

     is not an SQL statement.

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. SQL views can be used to hide:

  8. A.

     columns and rows only.

    B.

     complicated SQL syntax only.

    C.

     both of the above can be hidden by an SQL view.

    D.

     None of the above is correct.

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. The SQL statement to create a view is:

  10. A.

     CREATE VIEW

    B.

     MAKE VIEW

    C.

     SELECT VIEW

    D.

     INSERT VIEW

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. To update an SQL view, the DBMS must be able to associate the column(s) to be updated with:

  12. A.

     a particular column in a particular underlying table.

    B.

     a particular column in a particular row.

    C.

     a particular row in a particular underlying table.

    D.

     None of the above is correct.

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. Which of the following is NOT a type of SQL constraint?

  14. A.

     PRIMARY KEY

    B.

     FOREIGN KEY

    C.

     ALTERNATE KEY

    D.

     UNIQUE

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. A ________ is a program that performs some common action on database data and that is stored in the database.

  16. A.

     trigger

    B.

     stored procedure

    C.

     pseudofile

    D.

     None of the above is correct.

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. For what purposes are views used?

  18. A.

     To hide columns only

    B.

     To hide rows only

    C.

     To hide complicated SQL statements only

    D.

     All of the above are uses for SQL views.

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. What is an SQL virtual table that is constructed from other tables?

  20. A.

     Just another table

    B.

     A view

    C.

     A relation

    D.

     Query results

    View Answer

    Workspace

    Discuss Discuss in Forum