My question is why when I input the query
SELECT * FROM movies WHERE year BETWEEN 1990 AND 2000;
includes the year 2000 however when I input the query:
SELECT * FROM movies WHERE name BETWEEN 'A' and 'J'
movies that begin with J are not included. I don't understand the inconsistency with how the between function works when looking at letters versus numbers. I understand that you could use the % to include it but I would like to know why it works this way.