SQL command information

 1. Which is the subset of SQAL commands used to manipulate Oracle Database structures, including tables?

    Data Definition Language (DDL)

2. What operator performs patter matching?

    LIKE operator

3. What operator test column for the absence of data?

    IS NULL operator

4. Which command executes the contents of a specified file?

    START <filename> or @<filename>

5. What is the parameter substitution symbol used with INSERT INTO commands?

    &

6. Which command displays the SQL command in the SQL buffer, and then executes it?

    RUN

7. What are the wildcards used for pattern matching?

    _for single character substitution and % for multi-character substitution

8. State true or false. EXISTS, SOME, ANY are operators in SQL.

    true

9. State true or false, !=, < >, ^= all denote the same operation.

    True

10. What are the privileges that can be granted on a table by a user to others?

    Insert, update, delete, select, reference, index, execute, alter, all

11. What command is used to get back the privileges offered by the GRANT command?

    REVOKE

12. Which system tables contains information privileges granted and privileges obtained?

    USER_TAB_PRIVS_MADE, USER_TAB_PRIVS_RECD

13. Which system table contains information on constraints on all the tables created?

    USER_CONTRAINTS

14. TRUNCATE table emp;

    DELETE from emp;

    will the outputs of the above two commands differs?

    Both will result in deleting all the rows in the table EMP.

Comments

Popular posts from this blog

Some more Testing Types

Software Development Life Cycle