Skip to content
Question 87 of 95

Q.(a) Differentiate between IN and BETWEEN operators in SQL with appropriate examples.

(OR)
(b) Which of the following is NOT a DML command. DELETE, DROP, INSERT, UPDATE
Odisha ChseCBSE Class XII Board 2023Subjective· 2mImportance★★★★★
92% · 87/95 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

Part (a): IN matches a value against a discrete list of values, while BETWEEN checks whether it falls in an inclusive continuous range. Part (b): among DELETE, DROP, INSERT, UPDATE the one that is NOT a DML command is DROP (it is DDL).

Part (a)

Both IN and BETWEEN are comparison operators used in a WHERE clause.

  • IN returns true when the column value equals any one value in a given list. The list is a set of discrete, not-necessarily-contiguous values.
SELECT * FROM Student WHERE City IN ('Delhi', 'Mumbai', 'Pune');

This selects rows whose City is Delhi, Mumbai or Pune.

  • BETWEEN returns true when the column value lies within a continuous range, and it is inclusive of both boundary values.
SELECT * FROM Student WHERE Marks BETWEEN 60 AND 80;
``` …

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.