FAQ: Queries - Between


#1

This community-built FAQ covers the “Between” exercise from the lesson “Queries”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Web Development
Data Science

Learn SQL

FAQs on the exercise Between

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!


#2

So how do you include ‘Z’, if last letters are not inclusive?


#3

If we look at the ordinals, we see that a comes after Z, so,

WHERE name IS BETWEEN 'W' AND 'a';
Query Results
id 	name 	genre 	year 	imdb_rating
142 	Warm Bodies 	horror 	2013 	6.9
89 	Wedding Crashers 	comedy 	2005 	7.0
99 	What Lies Beneath 	horror 	2000 	6.6
162 	What Women Want 	romance 	2000 	6.4
144 	Wolf 	horror 	1994 	6.2
98 	World War Z 	horror 	2013 	7.0
48 	X-Men: Days of Future Past 	action 	2014 	8.1
47 	X-Men: The Last Stand 	action 	2006 	6.8
130 	Zombieland 	horror 	2009 	7.7