Home / CSE / Database System 2 - CS :: Introduction to SQL

CSE :: Database System 2 - CS

  1. You can add a row using SQL in a database with which of the following?

  2. A.

     ADD

    B.

     CREATE

    C.

     INSERT

    D.

     MAKE

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. The command to remove rows from a table 'CUSTOMER' is:

  4. A.

     REMOVE FROM CUSTOMER ...

    B.

     DROP FROM CUSTOMER ...

    C.

     DELETE FROM CUSTOMER WHERE ...

    D.

     UPDATE FROM CUSTOMER ...

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. The SQL WHERE clause:

  6. A.

     limits the column data that are returned.

    B.

     limits the row data are returned.

    C.

     Both A and B are correct.

    D.

     Neither A nor B are correct.

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. Which of the following is the original purpose of SQL?

  8. A.

     To specify the syntax and semantics of SQL data definition language

    B.

     To specify the syntax and semantics of SQL manipulation language

    C.

     To define the data structures

    D.

     All of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. The wildcard in a WHERE clause is useful when?

  10. A.

     An exact match is necessary in a SELECT statement.

    B.

     An exact match is not possible in a SELECT statement.

    C.

     An exact match is necessary in a CREATE statement.

    D.

     An exact match is not possible in a CREATE statement.

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. A view is which of the following?

  12. A.

     A virtual table that can be accessed via SQL commands

    B.

     A virtual table that cannot be accessed via SQL commands

    C.

     A base table that can be accessed via SQL commands

    D.

     A base table that cannot be accessed via SQL commands

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. The command to eliminate a table from a database is:

  14. A.

     REMOVE TABLE CUSTOMER;

    B.

     DROP TABLE CUSTOMER;

    C.

     DELETE TABLE CUSTOMER;

    D.

     UPDATE TABLE CUSTOMER;

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. ON UPDATE CASCADE ensures which of the following?

  16. A.

     Normalization

    B.

     Data Integrity

    C.

     Materialized Views

    D.

     All of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. SQL data definition commands make up a(n) ________ .

  18. A.

     DDL

    B.

     DML

    C.

     HTML

    D.

     XML

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. Which of the following is valid SQL for an Index?

  20. A.

     CREATE INDEX ID;

    B.

     CHANGE INDEX ID;

    C.

     ADD INDEX ID;

    D.

     REMOVE INDEX ID;

    View Answer

    Workspace

    Discuss Discuss in Forum