Good morning, I hope you can help me since I am just beginning to apply in what is SQL Server, I am working in a system of worksheet and I wanted to know how to insert in a table (Template.dbf) some data of the table (worker.dbf) plus some other field of another table, ojito that are tables with different fields,
Well, as you can see in the image, my idea is that when you insert a month, you automatically register in the table table.dbf with the data of the workers table, with the field of the month (id_planilla) and the percentage that depends on the salary field.
I do not know whether to do it with a stored procedure that contains a Trigger or a cursor or with the combination of both.
I hope you can help me. Greetings and thanks