Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Databases SQL Basics Finding the Data You Want Finding the Data You Want Review

Can someone please explain this? What will happen if I select B as the answer?

I dont understand how to specify a date range. It seems like we have to use the BETWEEN key word. Can someone explain what will happen if I select the B option with > and < operators?

2 Answers

Steven Parker
Steven Parker
216,152 Points

You forgot to quote the actual question, but BETWEEN creates an inclusive range, which covers both endpoints and all the values bounded by them.

Combining ">" and "<" will create an exclusive range, covering the values from one end to the other, but not including the endpoints themselves.