MySQL Forums
Forum List  »  Optimizer & Parser

Re: Slow Subquery - Optimization in this simple query needed
Posted by: Björn Steinbrink
Date: March 28, 2007 06:22PM

SELECT
    *
FROM
    `newsme_groups_users` AS a
INNER JOIN
    `newsme_users` AS b ON b.userID = a.gUID
LEFT JOIN
    `newsme_letters_logs` AS c ON c.logEMAIL = b.userEMAIL and c.logLID = '25'
WHERE
    a.gGID IN (25, 26, 27) AND
    b.userACTIVE = '1' AND
    c.logEMAIL IS NULL
LIMIT
    100



Edited 1 time(s). Last edit at 04/04/2007 08:30AM by Björn Steinbrink.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Slow Subquery - Optimization in this simple query needed
2311
March 28, 2007 06:22PM


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.