SQL intermediate | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

SQL intermediate

I'm getting an error message without fully understand why. Here is the coding 1. SELECT CONCAT( 2. LOWER ( firstname), 3. ' ' 4. - ' 5. LOWER (lastname), 6. '@company.com' AS email 7. FROM employees ORDER BY email ASC States there is an error on line 4. Then I changed it & still got a syntex error message. What is going on here? Edit: Thx for replies. I seemed to have another error message...after i fixed what was mentioned below. It states there is a '.' Theres a dot in the code. Here is the new error message. Your output email amyanderson@company.com Expected output email amy.anderson@company.com Wouldnt I need a dot to get the expected output?

11th Jul 2023, 11:55 PM
Jess A
Jess A - avatar
3 ответов
+ 4
Jess A check that all parentheses are closed, all quotation marks are paired, and that there are no missing commas. It looks like all three of these errors need correction.
12th Jul 2023, 12:13 AM
Brian
Brian - avatar
+ 2
Answer for your update. Yes, you need to use a string containing just one dot. Remember to use quotes for the string.
13th Jul 2023, 9:03 AM
Евгений
Евгений - avatar
+ 1
There's a quote missing in line 4, trailing commas in lines 3 and 4, and a closing parenthesis just before "AS". Also, do you really need that empty string in line 3?
12th Jul 2023, 8:57 PM
Евгений
Евгений - avatar