Which operator in SQL is used to exclude specific data records from a search based on a collection of negative criteria? MCQ with Answer and Explanation

Which operator in SQL is used to exclude specific data records from a search based on a collection of negative criteria?
A. REMOVE
B. MINUS
C. EXCEPT
D. NOT IN
Answer: Option D
Solution (By JKSSB Mock Tests)
The NOT IN operator filters the query results to exclude records whose values match any element within the provided list or subquery.

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 difference between a primary key and a unique key?
A. Primary key cannot have NULL; unique key can have one NULL (in most DBMS)
B. Primary key is always integer; unique key can be any data type
C. Unique key is always a foreign key
D. There is no difference

Correct Answer: Option A


Explanation:
A primary key is a unique identifier that cannot be NULL, while a unique key allows NULL values (usually one) and can be used for alternate keys.

This question belongs to: Computer Database Management System (DBMS)
Question #2
What is the result of the SQL query: SELECT * FROM employees;?
A. An empty result
B. All rows and all columns from the employees table
C. Only the primary key column
D. Only the first row

Correct Answer: Option B


Explanation:
SELECT * retrieves all columns and rows from the specified table.

This question belongs to: Computer Database Management System (DBMS)
Question #3
What type of key uniquely identifies each record in a table and cannot contain NULL values?
A. Primary Key
B. Secondary Key
C. Candidate Key
D. Foreign Key

Correct Answer: Option A


Explanation:
A Primary Key is a unique identifier for each tuple in a relation. It enforces entity integrity and strictly cannot accept NULL values.

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