If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Join with three tables

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-17-04, 23:51
Sudar Sudar is offline
Registered User
 
Join Date: Jul 2004
Location: Mars
Posts: 137
Thumbs up Join with three tables

Is it possible to join three tables in a single query based on multiple conditions which involve all the three tables..?
If possible could anyone just give the syntax for it..

Thnks in advance....
__________________
Sudar

--
My Blog
Reply With Quote
  #2 (permalink)  
Old 11-18-04, 01:42
Sudar Sudar is offline
Registered User
 
Join Date: Jul 2004
Location: Mars
Posts: 137
Thumbs up Found the solution

I found the solution by myself..

The syntax is

Select col_names from table1 left join table2 on join_cond left join table3 on join_cond

Thnks any ways
__________________
Sudar

--
My Blog
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On