Link to home
Start Free TrialLog in
Avatar of thayduck
thayduckFlag for United States of America

asked on

Inner or Left Join

I have a parameter called Tab1or3.
 If this parameter = 9, I want the below to be a Left Join, otherwise leave it as a Inner join.

Can that be done some way ?

INNER JOIN #CreditStatus1 c
                     ON Substring(s.custno, 2, 6) = c.custno
SOLUTION
Avatar of slubek
slubek
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of thayduck

ASKER

I was trying to avoid doing what you suggest. I thought there might be another way.

It is a big query.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for your help.

Slubek, your way will work to.

Jim Horn, you read my mind on your suggestion.