Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

string concatenation in where clause

$
0
0

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.


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>