Hello everyone! I know that it is something basic perhaps but I cannot find documentation, in addition to the fact that very recently I started using the tool.
I have the following problem, I have to make a copy of data from a table by means of parameters that I generate from another, to save a history. I understand that I can do it either by after event or by store procedure, could you give me examples of both if possible? I give the example of my case:
table A … (is where I save the movements): id, presid, entid, preperestid, preiodoid.
table B … (is the one that contains the data to be duplicated): id, perid, per_docnro, per_apeynom, presid, entid, preperestid, preiodoid.
As you can see … preside, entid, preperestid, preiodoid are repeated in both because it is for those fields that I make the filters. The particularity is that I must always duplicate the last value received presid, without repeating it … entid, and execute the duplication of the data with the new presid, entid, preperestid, preiodoid … but from the table B … to generate the user.
Thanks a lot!