Friday, 21 September 2012

SQL Interview Questions


1.     Which is the subset of SQL commands used to manipulate Oracle Database structures, 
        including tables?
           Data Definition Language (DDL)

2.     What operator performs pattern matching?
LIKE operator

3.     What operator tests 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 command?
           &

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, references, index, execute, alter, all

No comments:

Post a Comment