What is the purpose of the SQL 'IN' operator? MCQ with Answer and Explanation

What is the purpose of the SQL 'IN' operator?
A. To check if a value matches any value in a list
B. To join tables
C. To check if a value is between two values
D. To check if a value is null
Answer: Option A
Solution (By JKSSB Mock Tests)
IN is used to test membership in a set of values.

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Database Management System (DBMS) Questions

Question #1
What is the purpose of the SAVEPOINT statement?
A. To start a new transaction
B. To permanently save changes
C. To create a point within a transaction to which you can later roll back
D. To release locks

Correct Answer: Option C


Explanation:
SAVEPOINT creates a named point within a transaction, allowing partial rollback to that point without affecting the entire transaction.

This question belongs to: Computer Database Management System (DBMS)
Question #2
What is the concept of data independence?
A. The ability to move data between tables
B. The ability to change the database schema without affecting the application programs
C. The ability to access data from multiple sources
D. The ability to store data in different formats

Correct Answer: Option B


Explanation:
Data independence is the capacity to change the database schema at one level without affecting the next higher level, minimizing impact on applications.

This question belongs to: Computer Database Management System (DBMS)
Question #3
The command to modify existing records in a table is:
A. CHANGE
B. ALTER
C. MODIFY
D. UPDATE

Correct Answer: Option D


Explanation:
UPDATE is the DML command used to modify data in existing rows.

This question belongs to: Computer Database Management System (DBMS)