MySQL Forums
Forum List  »  Optimizer & Parser

Re: Can I speed this up?
Posted by: KimSeong Loh
Date: March 11, 2007 12:59AM

I did not look into it very detail, so cannot be sure, but looking at your having clause, it sum something from the last table. Sum ignores all NULL rows, and if the only values is NULL, sum will return NULL, your SUM(...) is not null may be filtering away those non-matching rows.
Still, I am not too sure, since I did not look into your join and join condition in detail.

Options: ReplyQuote


Subject
Views
Written By
Posted
5331
February 17, 2007 11:18AM
3090
February 17, 2007 11:23AM
2910
February 25, 2007 11:40PM
2987
March 10, 2007 01:23PM
Re: Can I speed this up?
2859
March 11, 2007 12:59AM
2830
April 26, 2007 01:04AM
2792
August 30, 2007 02:55AM


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.