MySQL Forums
Forum List  »  Newbie

Re: Speed up this query
Posted by: Rick James
Date: April 26, 2016 11:11PM

`salesledger` would probably benefit from
INDEX(customerid, duedate, invoicedate)
(because it would be a "covering" index)

(If you use Peter's suggestion, don't forget to put (balance <> 0) back in.)

Options: ReplyQuote


Subject
Written By
Posted
April 23, 2016 01:28PM
April 23, 2016 03:15PM
April 26, 2016 12:35PM
April 26, 2016 01:50PM
Re: Speed up this query
April 26, 2016 11:11PM


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.