i need some help writing a stored procedure to archive old rows (delete and insert to archive tables) i want to run a select that will return users ids that were deleted the past 24 hours, and then archive all their rows from tables according to this id. how can i do that?