001Level 1

Chapter 3 · Sorting & Limiting

15. Customers by Email Domain

Easy10 XPFinance

Marketing wants to find all customers who use Gmail. Return the first_name, last_name, and email of every customer whose email address ends with '@gmail.com'. Sort alphabetically by last_name.

Tables

  • PKidINT
  • first_nameTEXT
  • last_nameTEXT
  • emailTEXT
  • phoneTEXT
  • date_of_birthTEXT
  • 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.

Peek at the solution?

You can still earn the XP afterwards by submitting a working query — but you'll learn more if you give it one more try.