MySQL Forums
Forum List  »  Optimizer & Parser

Re: Left Join Problem
Posted by: Clodelio Delfino
Date: August 23, 2006 11:01PM

Thanks for the input Bob, btw...below query now works for me....

Query:

SELECT
s.sid, s.sdata1, s.sdata2
FROM
((setup_main AS s
LEFT JOIN
output1 AS o1 ON s.sid = o1.sid
AND
o1.outdate_end
BETWEEN
'PREVDATE' AND 'CURDATE'
)
LEFT JOIN
output2 AS o2 ON s.sid = o2.sid
AND
o2.outdate_end
BETWEEN
'PREVDATE' AND 'CURDATE'
)
LEFT JOIN
output3 AS o3 ON s.sid = o3.sid
AND
o3.outdate_end
BETWEEN
'PREVDATE' AND 'CURDATE'

Options: Reply• Quote


Subject
Views
Written By
Posted
2952
August 22, 2006 11:30PM
1973
August 23, 2006 09:00AM
2001
August 23, 2006 06:53PM
1878
August 23, 2006 07:12PM
Re: Left Join Problem
2090
August 23, 2006 11:01PM


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.