MySQL Forums
Forum List  »  Performance

Multiple LEFT JOIN Query Performance
Posted by: Sunil H
Date: April 10, 2009 03:32AM

Hi,

Need alternate query option for the following,the reason for this complex query is to get the output columns in adjacent style like .. id,V1,V2 ......

SELECT time,V1,V2 FROM
(
(SELECT id,time,value AS V1 FROM sample_table WHERE time="10:00:00") AS T1
LEFT JOIN
(SELECT id,time,value AS V2 FROM sample_table WHERE time="11:00:00") AS T2
ON T1.id=T2.id
) AS TMP_TABLE

Regards,
Sunil

Options: ReplyQuote


Subject
Views
Written By
Posted
Multiple LEFT JOIN Query Performance
4335
April 10, 2009 03:32AM


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.