![]() |
| ||
| how do I nest a CASE statement in an INNER JOIN Hello, I am trying to nest some CASE statements into INNER JOINs (one CASE per INNER JOIN). The current code is: SELECT<---This is where I would like to place the INNER JOIN w/ CASE LEFT OUTER JOIN Anyway, I really don't even know where to begin with the syntax (assuming it can be done). I've tried to do the implied INNER JOIN by leaving the INNER JOIN w/ case in this form: SELECT iitem, ikey And, I've also tried to spell out the INNER JOIN and put the CASE statement into the ON clause like this: INNER JOIN. . . also tried with parens around the CASE statement. I'm not only new to databases and SQL, but am also new to posting on forums for assistance. So, if there's any other info that would be helpful, please let me know. Thanks! |
| All times are GMT -4. The time now is 6:42 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC