Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Country ISOCode 3 Name PopDensity Capital GAB Gabon 2 1 . 3 Libreville ROU Romania 2 1 9 . 1 Bucharest LBR Liberia 1 2

Country
ISOCode3 Name PopDensity Capital
GAB Gabon 21.3 Libreville
ROU Romania 219.1 Bucharest
LBR Liberia 129.6 Monrovia
Statistics
Code3 TLD Area Population
GAB .ga 995002120000
ROU .ro 8880019470000
LBR .lr 372004820000
CREATE TABLE Statistics (
Code3 CHAR(3),
TLD CHAR(3),
Area DECIMAL(9,2),
Population INTEGER,
PRIMARY KEY (TLD),
FOREIGN KEY (Code3) REFERENCES Country(ISOCode3)
ON DELETE CASCADE
ON UPDATE RESTRICT
);The CREATE TABLE statement above creates the Statistics table. What is the result of each operation?Deleting the foreign key GAB from the Statistics table.
Select
Updating the ISOCode3 of Gabon from GAB to XYZ.
Select
Deleting the row containing Gabon from the Country table.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Sham Navathe,Ramez Elmasri

5th Edition

B01FGJTE0Q, 978-0805317558

More Books

Students also viewed these Databases questions