Home / CSE MCQs / Oracle Database MCQs :: Oracle Database SQL Basics

CSE MCQs :: Oracle Database MCQs

  1. In an SQL statement, which of the following parts states the conditions for row selection?
  2. A.
    Where
    B.
    From
    C.
    Order By
    D.
    Group By

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Which of the following keyword is used with Data Control Language (DCL) statements?
  4. A.
    SELECT
    B.
    INSERT
    C.
    DELETE
    D.
    GRANT

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. In SQL, which of the following is not a data definition language commands?
  6. A.
    RENAME
    B.
    REVOKE
    C.
    GRANT
    D.
    UPDATE

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. SQL has how many main commands for DDL:
  8. A.
    1
    B.
    2
    C.
    3
    D.
    4

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. A type of query that is placed within a WHERE or HAVING clause of another query is called
  10. A.
    Master query
    B.
    Sub query
    C.
    Super query
    D.
    Multi-query

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. Stack is also called __________
  12. A.
    First In First Out (FIFO)
    B.
    Last In First Out (LIFO)
    C.
    First In Last Out (FILO)
    D.
    First Come First Served (FCFS)

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. A command that lets you change one or more fields in a record is
  14. A.
    Insert
    B.
    Modify
    C.
    Look-up
    D.
    All of the Mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. The SQL statement 

    SELECT SUBSTR('123456789', INSTR('abcabcabc', 'b'), 4) FROM DUAL;
  16. A.
    6789
    B.
    2345
    C.
    1234
    D.
    456789

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. Which of the following is illegal?
  18. A.
    SELECT SYSDATE "“ SYSDATE FROM DUAL;
    B.
    SELECT SYSDATE "“ (SYSDATE "“ 2) FROM DUAL;
    C.
    SELECT SYSDATE "“ (SYSDATE + 2) FROM DUAL;
    D.
    None of the Mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. ________clause is an additional filter that is applied to the result.
  20. A.
    Select
    B.
    Group-by
    C.
    Having
    D.
    Order by

    View Answer

    Workspace

    Discuss Discuss in Forum