home bbs files messages ]

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,178 of 19,505   
   Gene Wirchenko to michael@gurfinkel.us   
   Re: left join not quite working   
   27 Feb 15 10:23:10   
   
   From: genew@telus.net   
      
   On Thu, 26 Feb 2015 18:03:13 -0800 (PST), "M.G."   
    wrote:   
      
   >Solved - I should have check for the date within ON clause, and not in the   
   WHERE   
   >correct version looks like this :   
   >   
   >select ...   
   >left join	@SCHEDULED S	on E.EMPL_ID=S.EMPL_ID   
   >     and S.WORK_DATE = '20150107';   
      
        I was wondering what I was missing.   
      
        You also do not need the is null check.   
      
   [snip]   
      
   Sincerely,   
      
   Gene Wirchenko   
      
   --- 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