Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Extract Email Domains | String Functions
Functions in SQL

bookChallenge: Extract Email Domains

Task

Swipe to start coding

Write a query to extract the domain part of each customer's email address from the customers table.

  • Select the id, name, and email columns.
  • Extract the substring from the email column that comes after the "@" character and name it domain.
  • Return one row per customer.

Solution

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 3
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

close

bookChallenge: Extract Email Domains

Swipe to show menu

Task

Swipe to start coding

Write a query to extract the domain part of each customer's email address from the customers table.

  • Select the id, name, and email columns.
  • Extract the substring from the email column that comes after the "@" character and name it domain.
  • Return one row per customer.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 3
single

single

some-alt