I am trying to achieve the VLOOKUP function in my SQL server by running a SQL script.
For small example, my tables look like:
TableA