select * from COURSES
where cno like ’cs_1%’;
The corresponding result is:
CNO CNAME CR CAP
----- ------------------------- -- ---
cs110 Introduction to Computing 4 120
cs210 Computer Programming 4 100
cs310 Data Structures 3 60
cs410 Software Engineering 3 40
Using the reserved word between, we can ensure that certain values are
limited to prescribed intervals (including the endpoints of these intervals).
Example 5.6.7 To find the students who obtained some grade between 65 and
85 in 2002, we apply the following query:
select distinct stno from GRADES
where year = 2003 and
grade between 65 and 85;
This select construct returns the table:
STNO
----
1011
2661
5571
The previous select is simply a shorthand for
select distinct stno from GRADES
where year = 2003 and
grade >= 65 and
grade