MySQL Forums
Forum List  »  PHP

Re: Getting odd problem with SQL statement
Posted by: Peter Brawley
Date: March 18, 2006 09:51AM

Comma join syntax is best avoided. Try ...

select tp.TEAM_ID, ...
from bosi_TEAM_PITCHER tp
INNER JOIN bosi_PLAYER p USING (PLAYER_ID)
LEFT JOIN bosi_PITCH_STATS ps
ON (ps.PLAYER_ID = tp.PLAYER_ID and ps.STAT_TYPE = 'O' and ps.SEASON = 1907)
where tp.LEAGUE_ID = 1 ...

PB

Options: ReplyQuote


Subject
Written By
Posted
Re: Getting odd problem with SQL statement
March 18, 2006 09:51AM


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.