dc_jt Posted July 14, 2007 Share Posted July 14, 2007 Basically I have installer_id and revisit_installer_id These are stored in the jobs table. I want to link each of these to the installer table, something like: LEFT OUTER JOIN installers ON jobs.installer_id = installers.installer_id But I also need to join installers ON jobs.revisit_id = installers.installer_id This isnt right though. How do I do this? Thanks Quote Link to comment Share on other sites More sharing options...
Barand Posted July 14, 2007 Share Posted July 14, 2007 Use 2 different aliases for installer table LEFT JOIN installers a ON jobs.installer_id = a.installer_id LEFT JOIN installers b ON jobs.revisit_id = b.installer_id Quote Link to comment Share on other sites More sharing options...
dc_jt Posted July 14, 2007 Author Share Posted July 14, 2007 Thanks a lot Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.