Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started