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 Getting Data from a Database Retrieving Specific Columns of Information

chris muhirwa
chris muhirwa
1,112 Points

need help figuring out what am missing in my code

don't know what am missing in my answer to the question

What is your current code, and which task number are you on?

chris muhirwa
chris muhirwa
1,112 Points

Here are the columns in a users table in an e-commerce site: id, username, password, first_name, last_name.

Run a SQL query to get the two columns you'd need to generate the full names of each customer.

1 Answer

SELECT first_name, last_name FROM users;

chris muhirwa
chris muhirwa
1,112 Points

sorry i had posted the wrong question. the actual question am having trouble with is

****In the e-commerce database there's a customer_addresses table with the following columns: id, nickname, street, city, state, zip, user_id.

Select all the columns that are to do with the address. For example, all columns except id, nickname and user_id.

SELECT street, city, state, zip FROM customer_addresses;