Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

extending a Join

Status
Not open for further replies.

aarontra

Programmer
Oct 2, 2002
50
US
Here is the sql that works:

SELECT Sessions.Title as SessionTitle, Sessions.*, Users.firstName as LPFirstName,
Users.lastName as LPLastName, Users.Email as LPEmail, Users.CampusCompany as LPInstitution
FROM (Sessions LEFT JOIN SessionUsers ON
(Sessions.SessionID = SessionUsers.SessionID
AND SessionUsers.role = 'LeadPresenter') )
LEFT JOIN Users ON SessionUsers.UserID = Users.UserID


I want to add another two tables that will be joined to the
"Sessions" table.
I cannot get it to work.

The tables are Tracks, and Formats
columns to include are
Tracks.TrackName, Formats.FormatName

"Join" or where
Sessions.TrackID = Tracks.TrackID
Sessions.FormatID = Tracks.FormatID

The biggest reason I want to include these columns is I want to be able to "order by" them.

Any suggestions?

Thank you
Aaron
 
Got rid of the joins and now it works.

Aaron
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top