1516
GB
What is the BETWEEN operator in SQL and is it inclusive or exclusive of boundaries?
IN
SQL में BETWEEN ऑपरेटर क्या है और क्या इसमें सीमाएँ सम्मिलित हैं या अनन्य हैं?
A
BETWEEN a AND b is INCLUSIVE of both endpoints - equivalent to >= a AND <= b (both a and b are included in the range)
ए और बी के बीच दोनों समापन बिंदुओं का समावेश है - >= ए और के बराबर
B
BETWEEN is inclusive of lower bound, exclusive of upper bound
बीच में निचली सीमा शामिल है, ऊपरी सीमा शामिल नहीं है
C
BETWEEN is exclusive of lower bound, inclusive of upper bound
BETWEEN में निचली सीमा शामिल नहीं है, ऊपरी सीमा शामिल है
D
BETWEEN is exclusive of both boundaries
BETWEEN दोनों सीमाओं से अलग है
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
BETWEEN a AND b is inclusive of both bounds: equivalent to col >= a AND col <= b. This applies to numbers, dates, and strings. WHERE hire_date BETWEEN 2020-01-01 AND 2020-12-31 includes both Jan 1 and Dec 31.
व्याख्या (हिन्दी)
ए और बी के बीच दोनों सीमाएं शामिल हैं: col >= a और col के बराबर