40.2k views
4 votes
A range of values may be specified as a selection criteria by using the ____ operator.

A) Range
B) Between
C) In
D) Within

User Squiguy
by
7.9k points

1 Answer

2 votes

Final answer:

The Between operator is used in SQL to specify a range of values as a selection criterion, and it includes the values defining the boundaries of the range.

Step-by-step explanation:

The operator used to specify a range of values as a selection criterion in SQL (Structured Query Language) is the Between operator. When you want to retrieve data within a certain range, you use the Between operator to define the beginning and ending values of the range. For example, if you want to select all rows from a table where the column 'age' is between 18 and 25, you would write:

SELECT * FROM table_name WHERE age BETWEEN 18 AND 25;

This SQL query returns all records where the age is between 18 and 25, inclusive. It's important to note that the Between operator includes the boundary values specified in the range.

User Ivo Welch
by
8.0k points