Advertisement
yatahaze

PavloSheichenko

Feb 25th, 2023
914
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.15 KB | None | 0 0
  1. SELECT DISTINCT c1.CustomerName, c1.City
  2. FROM Customers c1
  3. JOIN Customers c2 ON c1.City = c2.City AND c1.CustomerID != c2.CustomerID
  4. ORDER BY c1.City;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement