I need to select all unique UK cities, where customers and suppliers live, sort from A to Z
I have two tables: Customers and Suppliers. They both have City and Country columns.
This is my request:
select distinct Customers.City, Suppliers.City, Customers.Country, Suppliers.Country
from Customers
join Suppliers
on Customers.Country = Suppliers.Country
where Customers.Country like "UK";
And as a result I get 4 columns: City, City, Country, Country.
Where am I wrong?