Question: Q 2 . Consider the following relational database for a Human Resources System. Each primary key is specified with a key icon. The one -

Q2. Consider the following relational database for a Human Resources System.
Each primary key is specified with a key icon.
The one-to-many 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.Q2. Consider the following relational database for a Human Resources System.
Each primary key is specified with a key icon.
The one-to-many 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.
(5 marks)
(b) Insert a record with the following values into the table against each
column.
Q 2 . Consider the following relational database

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!