Question: Q 2 . Consider the following relational database for a Human Resources System. Each primary key is specified with a key icon. The one -
Q Consider the following relational database for a Human Resources System.
Each primary key is specified with a key icon.
The onetomany relationships are specified by using
Note that in this question, the names of foreign key are coincidentally the same as the names
of primary key being referenced.Q Consider the following relational database for a Human Resources System.
Each primary key is specified with a key icon.
The onetomany relationships are specified by using
Note that in this question, the names of foreign key are coincidentally the same as the names
of primary key being referenced.
Write SQL commands to answer the following queries.
a Create table 'countries' with foreign key constraint using reference option of cascade
for both update and delete. If there exists a table countries remove it before
creating one.
The following is the structure of the table 'countries'. Please use the data types in the
following table and ignore the data types specified in the diagram above.
marks
b Insert a record with the following values into the table against each
column.
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
