Filter values by interval
Which countries are not too small and not too big? BETWEEN allows range checking (range specified is inclusive of boundary values).The example below shows countries with an area of 250,000-300,000 sq. km.
Show the country and the area for countries with an area between 200,000 and 250,000
SELECT name, area FROM world WHERE area BETWEEN 200000 AND 250000
There are many "Relational database management systems" (RDBMS) like MySQL, Oracle, PostgreSQL ... The one we use here is called SQLite. Most RDBMS follow a similar syntax, but there are many small annoying variations. One of those is whether or not they include the boundary numbers in a "between" query. Always check the documentation of the database you will be querying