MySQL Forums
Forum List  »  MySQL Query Browser

Help for a query
Posted by: Himanshu Nagar
Date: February 26, 2013 11:46PM

HI Everyone,

I am novice in terms of SQL knowledge , Can some one please explain how is the query executed:

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));

I am very confused on this .

Options: ReplyQuote


Subject
Written By
Posted
Help for a query
February 26, 2013 11:46PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.