I'm trying to do this, just a simple concatenation on the join criterion:
select
*
from
[tblJudgement4] j4
inner
join [tblJudgement4] jwhere j.LoanNum='000'+ j4.LoanNum
Msg 156, Level 15, State 1, Line 4
Incorrect syntax near the keyword 'where'.
LoanNum is an NVARCHAR(50). Any help is appectiated.