I have a stored procedure that is required to update an existing record with new data, however it must not 'over write' any existing data.
For Example we may have three fields:
FirstName | LastName | PhoneNumber
Call the above 'TableX'.
In a very simple update this could look something like this:
Update TableX
set FirstName = [TableY.FirstName]
,LastName = [TableY.LastName]
,PhoneNumber = [TableY.PhoneNumer]
etc.....
However I require that each column Only Updates (from TableY) if it is empty.