Which SQL operator allows you to check if a column value matches any item contained within a comma-separated list of explicit values? MCQ with Answer and Explanation
Which SQL operator allows you to check if a column value matches any item contained within a comma-separated list of explicit values?
A. BETWEEN
B. IN
C. LIKE
D. EXISTS
Answer: Option B
Solution (By JKExamLibrary)
The IN operator allows you to specify multiple literal values or a subquery inside a WHERE clause, testing if an attribute matches any element in the list.
Explanation:
A Foreign Key is an attribute or collection of attributes in one table that references the primary key of another table to maintain referential integrity.
No comments yet. Be the first to start the discussion!