I am trying to create a stored proc that would compare the value entered by a user with the value in another table.
There are two tables Table_a(PersonID,ALocationCode,AFlag) and Table_b(PersonID,BLocationCode)
If the ALocationCode entered by the user is not equal to the BLocationCode then AFlag needs to be checked. I am new to this...any help is appreciated.
There are two tables Table_a(PersonID,ALocationCode,AFlag) and Table_b(PersonID,BLocationCode)
If the ALocationCode entered by the user is not equal to the BLocationCode then AFlag needs to be checked. I am new to this...any help is appreciated.