select value from students where coll_Id=1
select value from students where coll_Id=2
select value from students where coll_Id=3
select value from students where coll_Id=4
select value from students where coll_Id=5
select value from students where coll_Id=6
select value from students where coll_Id=7
select value from students where coll_Id=8
select value from students where coll_Id=9
select value from students where coll_Id=10
How to write a single query for the above statement.
EDIT: // see question comment by @t-clausen.dk
If you’re always dealing with ranges you could use
which is equivalent to