CS/IT MCQ Collections

SQL Interview Questions With Answers set-3

Pinterest LinkedIn Tumblr
This set of SQL interview questions on basic SQL commands includes multiple-choice questions about the uses of different SQL statements and commands.

1. In SQL, which command is used to remove a stored function from the database?
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. A 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 data block?
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 data block?
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

Read Next: Solved Objective Questions on SQL and Embedded SQL set-4
Read More: Collections of DBMS MCQ questions
Download: Free PDF E-book of DBMS MCQ questions

Please follow and like us:
RSS
Follow by Email
X (Twitter)
Visit Us
Follow Me
YouTube
YouTube
LinkedIn
linkedIn | SQL Interview Questions With Answers set-3
Share

Author

Shuseel Baral is a web programmer and the founder of InfoTechSite has over 8 years of experience in software development, internet, SEO, blogging and marketing digital products and services is passionate about exceeding your expectations.

Comments are closed.

RSS
Follow by Email
X (Twitter)
Visit Us
Follow Me
YouTube
YouTube
LinkedIn
Share