I'm using Oracle SQL Developer and after executing this command only names starting with K and L show up. Why names starting with M do not appear?
SELECT DISTINCT(names) FROM STUDENTS WHERE names BETWEEN 'K%' AND 'M%' ORDER BY 1 DESC;
And when I execute:
SELECT DISTINCT(names) FROM STUDENTS WHERE names BETWEEN 'K%' AND 'N%' ORDER BY 1 DESC;
K,L,M appear but names starting with N don't. BETWEEN is inclusive so what's the problem?
This works perfectly:
SELECT * FROM STUDENTS WHERE year BETWEEN 1 AND 3;