MySQL Forums
Forum List  »  Newbie

Re: help with long query
Posted by: Felix Geerinckx
Date: July 18, 2005 01:37AM

George Develekos wrote:

> I have a long query that involves a single table that has four attributes, let's call them A,B,C
> and T, where A/B/C are strings and T is Timestamp.
>
> The query goes like this:
>
> select count(*) from mytable where T between T1 and T2 and B=b and C=c and A in (select A
> from mytable where B=b2 and C=c2)

Can you post the result of

EXPLAIN SELECT .... \G

What indexes do you have on your table?

--
felix
Please use BBCode to format your messages in this forum.

Options: ReplyQuote


Subject
Written By
Posted
July 18, 2005 12:19AM
Re: help with long query
July 18, 2005 01:37AM


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.