Reputation: 29
select * from student where roll-no in (30 to 50)
student
is table name, roll_no, first_name, last_name, add
are columns
How to print student details whose roll no between 30 to 50?
Upvotes: 1
Views: 31
Reputation: 3472
You need to use a where clause with a range like:
select * from student where [roll-no] >= 30 and [roll-no] <= 50;
Upvotes: 1