Chapter 9 · Interview Level
02. Customer Contact with COALESCE Fallback
Easy10 XPE-Commerce
Build a customer contact list where every row has a usable contact value. Return the customer's first_name, last_name, and a column called contact_info that shows the phone number if available, otherwise shows the email address.
Tables
- PKidINT
- first_nameTEXT
- last_nameTEXT
- emailTEXT
- phoneTEXT
- cityTEXT
- stateTEXT
- countryTEXT
- created_atTIMESTAMP
Need help?
Ask Sol
AI tutor — looks at your current query and nudges you, without spoiling the answer.
Solution
Try the hints first — solving it yourself is what makes it stick.