
Originally Posted by
Steve Grout
Are you saying this is what was causing the problem when trying to join the other table?
no, i am not -- i hadn't got as far as your problem of joining any other tables, i was trying to understand your original query
by the way, regarding this part of your query --
Code:
FROM idihc_seasons S
LEFT OUTER JOIN idihc_players P ON P.PlayerID = S.SeasonPlayerID
LEFT OUTER JOIN idihc_seasonnames SN ON SN.SeasonID = S.SeasonID
WHERE SN.SeasonPublish = 1 and P.PlayerPublish = 1
the conditions in the WHERE clause negate the outer joins, so you might as well code them as INNER JOINs, they might run faster
okay, so your original query will return all publishable players in a single season
could you please now describe the additional tables, and indicate the one-to-many relationships they have with the tables in your original query
Bookmarks