select with String in where clause

After String replace, the value in b will be WH1 || WH2(without quotes) and not “WH1” || “WH2”

So what is your location ID in the table?? Is that what you are missing?