MySQL Forums
Forum List  »  Optimizer & Parser

Join with more strict condition shows the record which is not visible without it
Posted by: Michal Jaskolski
Date: November 24, 2006 06:08AM

The following query shows exactly one record:

SELECT offer.id as offer_id, product.id as product_id
FROM offer, product
WHERE offer.cache_product_type_id = 86
AND product.source = 'abc'
AND offer.title_original = product.title
AND offer.is_connected !=1
AND offer.id = 11664907

The following query does NOT show the record above:

SELECT offer.id as offer_id, product.id as product_id
FROM offer, product
WHERE offer.cache_product_type_id = 86
AND product.source = 'abc'
AND offer.title_original = product.title
AND offer.is_connected !=1
AND offer.id > 11664906
ORDER BY offer.id

How it is possible? We are using MySQL 5.0.27

Options: ReplyQuote


Subject
Views
Written By
Posted
Join with more strict condition shows the record which is not visible without it
3285
November 24, 2006 06:08AM


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.