Home / CSE MCQs / DBMS MCQs :: SQL Basics

CSE MCQs :: DBMS MCQs

  1. Which one of the following is used to define the structure of the relation ,deleting relations and relating schemas ?
  2. A.
    DML(Data Manipulation Langauge)
    B.
    DDL(Data Definition Langauge)
    C.
    Query
    D.
    Relational Schema

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Which one of the following provides the ability to query information from the database and to insert tuples into, delete tuples from, and modify tuples in the database ?
  4. A.
    DML(Data Manipulation Langauge)
    B.
    DDL(Data Definition Langauge)
    C.
    Query
    D.
    Relational Schema

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. Create table employee (name varchar ,id integer) What type of statement is this ?
  6. A.
    DML
    B.
    DDL
    C.
    View
    D.
    Integrity constraint

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. Select * from employee What type of statement is this?
  8. A.
    DML
    B.
    DDL
    C.
    View
    D.
    Integrity constraint

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. The basic data type char(n) is a _____ length character string and varchar(n) is _____ length character.
  10. A.
    Fixed, equal
    B.
    Equal, variable
    C.
    Fixed, variable
    D.
    Variable, equal

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. An attribute A of datatype varchar(20) has the value "Avi . The attribute B of datatype char(20) has value Reed .Here attribute A has ____ spaces and attribute B has ____ spaces .
  12. A.
    3, 20
    B.
    20, 4
    C.
    20 , 20
    D.
    3, 4

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. To remove a relation from an SQL database, we use the ______ command.
  14. A.
    Delete
    B.
    Purge
    C.
    Remove
    D.
    Drop table

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. Delete from r; r “ relation This command performs which of the following action ?
  16. A.
    Remove relation
    B.
    Clear relation entries
    C.
    Delete fields
    D.
    Delete rows

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. Insert into instructor values (10211, 'Smith', 'Biology', 66000); What type of statement is this ?
  18. A.
    Query
    B.
    DML
    C.
    Relational
    D.
    DDL

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. Updates that violate __________ are disallowed .
  20. A.
    Integrity constraints
    B.
    Transaction control
    C.
    Authorization
    D.
    DDL constraints

    View Answer

    Workspace

    Discuss Discuss in Forum