






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







Last time
Example
Example
cd_id → artist, title customer_id → name, address order_id → order_date, customer_id order_id, cd_id → quantity
Non determinancy
Correctness
Discussion
Problem in a nutshell
Multivalued dependencies
Rules for multivalued dependencies
4NF
create table Cargo (ID integer PRIMARY KEY, RD varchar (3), -- Region Departure RA varchar (3), -- Region Arrival CD varchar (3),! -- Country Departure CA varchar (3),! -- Country Arrival AL varchar (3), -- Airline FNR varchar (5),! -- Flight Nummer SNR integer, -- Header Segment Number DEP varchar (3),! -- City Departure ARR varchar (3), -- City Arrival STD varchar (4),! -- Schedule Time of Departure DDC integer, -- Date Variation of Departure STA varchar (4), -- Schedule Time of Arrival ADC integer, -- Date Variation of Arrival MO integer (1),! -- Monday TU integer (1),! -- Tuesday WE integer (1),! -- Wednesday TH integer (1),! -- Thursday FR integer (1),! -- Friday SA integer (1),! -- Saturday SU integer (1),! -- Sunday ACTYPE varchar(3), -- Aircraft Type Code ACTYPEFULLNAME varchar(30), -- Aircraft Name AG varchar (1),! -- Aircraft Group Code AGFULLNAME varchar(30), -- Aircraft Group Name START_OP_1 varchar(8),!! -- Start Date of Flight Operations END_OP_1 varchar(8) -- End Date of Flight Operations );
An example
We are told that the following functional dependencies hold: ACTYPE -> ACTYPEFULLNAME AG -> AGFULLNAME ACTYPE -> AG Task 1: Check that the cargo database respects these three functional dependencies: mysql> select actype from cargo group by actype having count(distinct actypefullname)>1; Empty set (0.03 sec) mysql> select ag from cargo group by ag having count(distinct agfullname)>1; Empty set (0.03 sec) mysql> select actype from cargo group by actype having count(distinct ag)>1; Empty set (0.03 sec)
An example