Skip to main content
Admissions guidance, study banks, and career tools — get started on Shalyam

Distinct Cities

Return every distinct city in which customers live, sorted alphabetically.

Table schema

Customers(id INT PRIMARY KEY, name VARCHAR(50), city VARCHAR(50))

Sample data

id | name | city
1 | Aman | Pune
2 | Riya | Mumbai
3 | Karan | Pune
4 | Neha | Delhi

Discussion

No discussions yet.

Rewards · v2.1

Get Exclusive Insights with Every Issue

Join Shalyam Newsletter

Stay ahead in education, research, and innovation—straight to your inbox.