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 25 of 38

Explore more Topics under DBMS

Q241.
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 > ALL (SELECT SALARY FROM EMPLOYEE);
prints

a.

10

b.

9

c.

5

d.

0

Discuss
Answer: (d).0
Q242.
Which of the following SQL commands can be used to add data to a database table?
Discuss
Answer: (d).INSERT
Q243.
Which of the following join is also called as an 'inner-join'?
Discuss
Answer: (c).Equijoin
Q244.
The result of a SQL SELECT statement is a ________ .
Discuss
Answer: (c).table
Discuss
Answer: (b).SELECT name, course_name FROM student WHERE age>50 and age <80;
Discuss
Answer: (a).SELECT * FROM student WHERE name LIKE 'r%';
Q247.
Which of the following SQL query is correct for selecting the name of staffs from 'staffinfo' table where salary is 10,000 or 25,000?
Discuss
Answer: (b).SELECT name FROM staffinfo WHERE salary IN (10000, 25000);
Q248.
Select the right statement to insert values to the student table.
Discuss
Answer: (c).INSERT INTO student VALUES (
Q249.
............. joins two or more tables based on a specified column value not equaling a specified column value in another table.
Discuss
Answer: (b).NON-EQUIJOIN
Q250.
In SQL, which command is used to change a table's storage characteristics?
Discuss
Answer: (a).ALTER TABLE

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!