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 > left join

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-07-05, 04:40
Telsmon Telsmon is offline
Registered User
 
Join Date: Dec 2005
Location: Kochi, Kearala, india
Posts: 1
left join

can any one tell me whether this query is correct or not?

select distinct patient_demog_prostat.patient_id , patient_demog_prostat.BMI from patient_demog_prostat LEFT JOIN cancer on patient_demog_prostat.patient_id=cancer.patient_id left join patient_analysis on patient_demog_prostat.patient_id = patient_analysis.patient_id where ( GA1932 >=0 and GA1932 <=10 ) and (cancer_you = 'COLON CANCER') order by patient_id asc

where GA32 is a column of patient_analysisy table
Reply With Quote
  #2 (permalink)  
Old 12-07-05, 08:16
jfulton jfulton is offline
Registered User
 
Join Date: Apr 2005
Location: Baltimore, MD
Posts: 297
It's pretty hard to tell without knowing your table schemas, their relationships to each other, and most importantly: what results you are trying to get.
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