I’ve a stored procedure that will get a person’s last name and insert it under Alias after she updated her last name on a form. But my boss wants to keep all previous last names whenever a person changes her name each time. I’ve the following data in the SQL table.
+----------------+---------------+----------------+------------------+
PeopleID FirstName LastName Alias
+-----------------+--------------+----------------+------------------+
002112 Judy Smith Hall
Let’s say, Judy changes her last name again to Kingsley. Is it possible to grab her previous last name Smith and insert it behind Hall under Alias? I’m thinking maybe it could look like this table but have no idea how.
+----------------+---------------+----------------+------------------+
PeopleID FirstName LastName Alias
+-----------------+--------------+----------------+------------------+
002112 Judy Kingsley Hall, Smith