I need to get distinct values from 3 tables.
When I perform this code:
select DISTINCT(city) from a,b,c
I get an error which says that
SELECT city FROM A UNION DISTINCT SELECT city FROM B UNION DISTINCT SELECT city FROM C