Jump to content
  • 0

Move records from one table to another based on a field's value


CaptnK

Question

I have two tables, Active_Users and Inactive Users. 

Each table has a user id, name, and status.

I would like a trigger invoked on insert and updates to the Active Users table.

The trigger moves records from Active Users to Inactive Users where the status = "inactive" in the Active Users table.

Any help appreciated.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

There may be various solutions to this using Triggered Actions, CaptnK. You may refer to the following as a sample reference.

 

image.png

 

image.png

 

It is highly advisable to work on test tables and data when troubleshooting Triggered Actions to prevent modifications of your actual live data. You may try the above and check if it works for you.

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...