Databases Reporting with SQL Working with Text Creating Excerpts

youssef b10ta
PRO
youssef b10ta
Pro Student 2,754 Points

how im supposed t understand this ? Bummer: Expecting results like 'L Chalkley' not 'L Chalkley'.

SELECT substr(first_name, 1, 1) || " " || last_name AS initial FROM customers;

kinda weird the result of my query is  ```L Chalkley ``` ```D McFarland```.......

2 Answers

Steven Parker
Steven Parker
182,307 Points

When the instructions said "Select their last name too", they didn't mean for you to concatenate it onto the first field. So while it may look the same, you're returning only one column but the challenge is expecting two.