Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Databases SQL Basics Finding the Data You Want Searching Tables with 'WHERE'

i don't understand

what is ans

2 Answers

So the challenge is asking you to enter SQL statement to retrieve the first name and last name of the person with the username 'wig_lady from the users database.

The thing I like about SQL is that it's very readable from a coding perspective. SQL statements clearly communicate their intention. So we want to:

SELECT [columns] FROM [database] WHERE [condition is true];

So in this instance we would want to enter:

SELECT first_name, last_name FROM users WHERE username = 'wig_lady';

Hope this helps!

Regards,
Berian

thanks