Any company can add/delete/modify them but when a new company is added to the company table I need to insert into the process table the set of standard processes. I would like to have a 3rd table named STANDARD PROCESSES and copy all its content with the new company name into the PROCESS TABLE.
It is correct to handle this with a trigger into the company table that operate such data copy?
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.
Question
vidierre
I have a table Processes containing for each company a set of processes:
COMPANY TABLE
COMPANY ADDRESS EMAIL
COM_AA V.Bari info@companya.com
COM_BB V.Roma segr@companyb.com
PROCESS TABLE
COMPANY PROCESS_NAME
COM_AA STD_PROC_A
COM_AA STD_PROC_B
COM_AA STD_PROC_C
COM_AA STD_PROC_D
COM_AA COM_PROC_1
COM_AA COM_PROC_2
COM_BB STD_PROC_A
COM_BB STD_PROC_B
COM_BB STD_PROC_C
COM_BB STD_PROC_D
Any company can add/delete/modify them but when a new company is added to the company table I need to insert into the process table the set of standard processes. I would like to have a 3rd table named STANDARD PROCESSES and copy all its content with the new company name into the PROCESS TABLE.
It is correct to handle this with a trigger into the company table that operate such data copy?
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
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.