Question: pid is a foreign key ( without CASCADE ) in Emp table references to the Prj table and cid the primary key in Emp table.
pid is a foreign key without CASCADE in Emp table references to the Prj table and cid the primary key in Emp table.
If we need to add a new record cid cname, salary, pid, pname with values 'Mary', C which answer is TRUE?
Given the following tables and records:
mysql select from Emp;
cid cname salary pid
Mary
Tom
mysql select from Prj;
pid pname
Java
Python
Web
pid is a foreign key without CASCADE in Emp table references to the Prj table and cid the primary key in Emp table.
If we need to add a new record cid cname, salary, pid, pname with values 'Mary', C which answer is TRUE?
We must insert the data into the Prj table first.
We cannot insert the data of this record into both tables.
We can either insert the data into the Prj table first or insert the data into the Emp table first. There is no order we need to follow.
We must insert the data into the Emp table first.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
