Test Index

CBSE Class 12 Computer Science 2026 Paper Compartment Get it on Google PlayDownload on the App Store

© examsnet.com
Question : 16 of 37
Marks: +1, -0
In MySQL, which of the following operator is used with WHERE clause and returns a True if the value belongs to the set of specified values ?
Solution:  
Concept:
The IN operator tests membership in a list of values.
Explanation:
SELECT * FROM EMP WHERE City IN ('Delhi', 'Mumbai');
This returns rows whose City is any one of the listed values.
DISTINCT removes duplicate rows, LIKE matches patterns with % and _, and NOT negates a condition.
Answer:
Option B (IN)
© examsnet.com
Advertisements
Go to Question: