SQL MCQ Interview Questions With Answers set-3


1. In SQL, which command is used to remove a stored function from the database?
SQL MCQ Interview Questions
Cover of SQL Server magazine (Photo credit: Wikipedia)

A) REMOVE FUNCTION

B) DELETE FUNCTION

C) DROP FUNCTION

D) ERASE FUNCTION



2. In SQL, which command is used to select only one copy of each set of duplicate rows

A) SELECT DISTINCT

B) SELECT UNIQUE

C) SELECT DIFFERENT

D) All of the above



3. Count function in SQL returns the number of

A) Values

B) Distinct values

C) Groups

D) Columns



4. Composite key is made up of ................

A) One column

B) One super key

C) One foreign key

D) Two or more columns



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

A) Grant

B) Revoke

C) Execute

D) Run




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

A) CMD

B) OPEN

C) EXECUTE

D) RUN



7. What is a DATABLOCK?

A) Set of Extents

B) Set of Segments

C) Smallest Database storage unit

D) Set of blocks



8. If two groups are not linked in the data model editor, what is the hierarchy between them?

A) There is no hierarchy between unlinked groups.

B) The group that is right ranks higher than the group that is to right or below it.

C) The group that is above or leftmost ranks higher than the group that is to right or below it.

D) The group that is left ranks higher than the group that is to the right.



9. Which of the following types of triggers can be fired on DDL operations?

A) Instead of Trigger

B) DML Trigger

C) System Trigger

D) DDL Trigger



10. What operator performs pattern matching?

A) IS NULL operator

B) ASSIGNMENT operator

C) LIKE operator

D) NOT operator




Answers:



1. In SQL, which command is used to remove a stored function from the database?

C) DROP FUNCTION

2. In SQL, which command is used to select only one copy of each set of duplicate rows

A) SELECT DISTINCT

3. Count function in SQL returns the number of

A) Values

4. Composite key is made up of ................

D) Two or more columns

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

B) Revoke

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

D) RUN

7. What is a DATABLOCK?

C) Smallest Database storage unit

8. If two groups are not linked in the data model editor, what is the hierarchy between them?

C) The group that is above or leftmost ranks higher than the group that is to right or below it.

9. Which of the following types of triggers can be fired on DDL operations?

C) System Trigger

10. What operator performs pattern matching?

C) LIKE operator


Related Posts


0 Response to "SQL MCQ Interview Questions With Answers set-3"

Post a Comment