MySQL Forums
Forum List  »  General

Re: Sub query translation.
Posted by: Oleksandr Byelkin
Date: April 21, 2005 10:54AM

I think it should be something like this:

SELECT meta.id, meta.field_name
FROM meta left join prod_meta on (prod_meta.meta_id = meta.id AND prod_id=5)
WHERE prod_meta.meta_id IS null;

BTW, I did not understand why join made inside subquery, so maybe I lost something in rewrition.

Mr. Oleksandr Byelkin
MySQL AB, Full-Time Developer
Lugansk, Ukraine

Options: ReplyQuote


Subject
Written By
Posted
April 16, 2005 05:21AM
Re: Sub query translation.
April 21, 2005 10:54AM


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.