Which SQL operator is used to check if a value is within a range? MCQ with Answer and Explanation

Which SQL operator is used to check if a value is within a range?
A. LIKE
B. EXISTS
C. BETWEEN
D. IN
Answer: Option C
Solution (By JKSSB Mock Tests)
BETWEEN checks if a value falls within a specified range (inclusive of boundaries).

Discuss this Question (0)

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

Practice More Database Management System (DBMS) Questions

Question #1
The process of organizing a relational database schema to minimize data redundancy and prevent update anomalies is called what?
A. Normalization
B. Denormalization
C. Aggregation
D. Generalization

Correct Answer: Option A


Explanation:
Normalization is the systematic process of structuring relational database schemas to eliminate redundant data and maintain data integrity through decomposition.

This question belongs to: Computer Database Management System (DBMS)
Question #2
Which of the following is a property of a transaction that ensures that the database remains in a valid state before and after the transaction?
A. Durability
B. Isolation
C. Consistency
D. Atomicity

Correct Answer: Option C


Explanation:
Consistency ensures that a transaction brings the database from one valid state to another, maintaining all defined rules and constraints.

This question belongs to: Computer Database Management System (DBMS)
Question #3
Which of the following is a valid SQL statement to create a view?
A. CREATE VIEW view_name AS SELECT ...;
B. Neither
C. CREATE VIEW view_name (columns) AS SELECT ...;
D. Both A and B

Correct Answer: Option D


Explanation:
Both syntaxes are valid: CREATE VIEW view_name AS SELECT ... and with column aliases.

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