MySQL Forums
Forum List  »  InnoDB

Re: Help on Query with DATE BETWEEN not performant
Posted by: Peter Brawley
Date: February 03, 2020 12:02PM

It seems peculiar, we're missing something, did you try reversing the join eg ...

select ca.fk_earticle
from ecust_user_contract u  
join econtracts_articles ca on u.fk_contract=ca.fk_econtract 
join earticles a on ca.fk_earticle=a.id 
               and a.dateOfArticle between '2019/01/02' AND '2020/02/02'
where u.fk_cust_user='mihaluka';

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Help on Query with DATE BETWEEN not performant
597
February 03, 2020 12:02PM


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.