|
Either of these should work
SELECT P.name, D.name AS Dname FROM players AS P,team as T LEFT JOIN division AS D ON T.divid = D.id where P.id = [playerID] and T.id = p.teamid ;
SELECT P.name, D.name AS Dname FROM players AS P left join team as T ON T.id = P.teamid JOIN division AS D ON T.divid = D.id where P.id = [playerID] ;
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
|