Users per Email Domain
Medium
Date & String Functions
Count how many users belong to each email domain (the part after '@'). Return domain and user_count, ordered by user_count descending then domain.
Table schema
Users(id INT PRIMARY KEY, email VARCHAR(100))Sample data
id | email
1 | john@gmail.com
2 | sara@yahoo.com
3 | mike@gmail.com
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.