Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.databases.ms-sqlserver    |    Notorious Rube Goldberg contraption    |    19,505 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 19,118 of 19,505    |
|    Lennart Jonsson to Raul Rego    |
|    Re: multiple JOIN for same table and col    |
|    28 Oct 14 13:33:38    |
      From: erik.lennart.jonsson@gmail.com              On 2014-10-28 11:02, Raul Rego wrote:       > I have the following select:       > ELECT ToxPat.CaseNumber, ToxPat.StartDate, ToxExpSub.SubDesc       >       > , ToxExpSub.SubPoisindexCode, CodeValue.CodeValue as 'Call Type'       > from ToxExpSub       >       > join Toxpat       > on ToxPat.CaseNumber = ToxExpSub.CaseNumber       > join CodeValue       > on codevalue.CodeID = toxpat.calltype       >       > I just received valuable help on how to retrieve child records NOW I need       help on the select codevalue.codevalue AND join CodeValue       > on codevalue.CodeID = toxpat.calltype       >       > I have many columns with numeric entries where their vertatim values or in       the table codevalue thus:       > I need multiple JOIN codevalue on codevalue.CODEID = toxpat.reason,       calltype, outcome etc.       >       > how can I do this?       >       > thanks,       >                     Do you mean:               ON codevalue.CODEID IN (toxpat.reason, toxpat.calltype,       toxpat.outcome, ...)              ?                     /Lennart              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca