adplus-dvertising

Welcome to the SQL MCQs Page

Dive deep into the fascinating world of SQL with our comprehensive set of Multiple-Choice Questions (MCQs). This page is dedicated to exploring the fundamental concepts and intricacies of SQL, a crucial aspect of DBMS. In this section, you will encounter a diverse range of MCQs that cover various aspects of SQL, from the basic principles to advanced topics. Each question is thoughtfully crafted to challenge your knowledge and deepen your understanding of this critical subcategory within DBMS.

frame-decoration

Check out the MCQs below to embark on an enriching journey through SQL. Test your knowledge, expand your horizons, and solidify your grasp on this vital area of DBMS.

Note: Each MCQ comes with multiple answer choices. Select the most appropriate option and test your understanding of SQL. You can click on an option to test your knowledge before viewing the solution for a MCQ. Happy learning!

SQL MCQs | Page 22 of 38

Explore more Topics under DBMS

Q211.
Which of the following is a SQL aggregate function?
Discuss
Answer: (b).AVG
Q212.
Which SQL statement is used to update data in a database?
Discuss
Answer: (b).UPDATE
Q213.
Which SQL statement is used to delete data FROM a database?
Discuss
Answer: (d).DELETE
Q214.
Which SQL keyword is used to sort the result-set?
Discuss
Answer: (c).ORDER BY
Q215.
The SQL statement
SELECT SUBSTR('123456789', INSTR('abcabcabc', 'b'), 4) FROM DUAL;
Discuss
Answer: (b).2345
Q216.
Which of the following group functions ignore NULL values?
Discuss
Answer: (d).All of the above
Q217.
Table Employee has 10 records. It has a non-NULL SALARY column which is also UNIQUE.
The SQL statement
SELECT COUNT(*) FROM Employee WHERE SALARY > ANY (SELECT SALARY FROM EMPLOYEE);
prints

a.

10

b.

9

c.

5

d.

0

Discuss
Answer: (b).9
Q218.
The SQL statement
SELECT SUBSTR('abcdefghij', INSTR('123321234', '2', 3, 2), 2) FROM DUAL;
prints
Discuss
Answer: (a).gh
Q219.
The SQL statement
SELECT ROUND(45.926, -1) FROM DUAL;
Discuss
Answer: (d).prints 50
Q220.
Which of the following must be enclosed in double quotes?
Discuss
Answer: (b).Column Alias

Suggested Topics

Are you eager to expand your knowledge beyond DBMS? We've curated a selection of related categories that you might find intriguing.

Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!