hello...,
SELECT DISTINCT store_type FROM stores s1
WHERE NOT EXISTS (
SELECT * FROM cities WHERE NOT EXISTS (
SELECT * FROM cities_stores
WHERE cities_stores.city = cities.city
AND cities_stores.store_type = stores.store_type));
please any one help me to understand this query... and what would be the output of this.
and please anyone suggest me tutorials for this type of query
thanks