MySQL Forums
Forum List  »  Newbie

Re: Tunning or optimizing a query
Posted by: David Fells
Date: April 05, 2005 07:42AM

EXPLAIN SELECT t.ranum, t.serloc, t.timeanddate
FROM transtable t,
(SELECT ranum, MAX(timeanddate) AS MAX_DATE FROM transtable WHERE ranum NOT LIKE '%AC' GROUP BY ranum)
WHERE t.ranum = b.ranum AND t.timeanddate = b.MAX_DATE AND t.serloc NOT LIKE '5410179601'

Options: ReplyQuote


Subject
Written By
Posted
Re: Tunning or optimizing a query
April 05, 2005 07:42AM


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.