9618_s23_qp_11
A paper of Computer Science, 9618
Questions:
6
Year:
2023
Paper:
1
Variant:
1

Login to start this paper & get access to powerful tools

1
2
An organisation uses a database to store data about the types of bird that people have seen. The database is managed using a Database Management System (DBMS). State what is meant by a data dictionary and give one example of an item typically found in a data dictionary. Definition Example State what is meant by data integrity and give one example of how this is implemented in a database. Definition Example The database, Birds, stores information about the types of bird and the people who have seen them. Data about each bird seen is stored with its location and data about the person who saw the bird. Database Birds has the following tables: BIRD_TYPE(BirdID, Name, Size) BIRD_SEEN(SeenID, BirdID, Date, Location, PersonID) PERSON(PersonID, FirstName, LastName, EmailAddress) Complete the table by identifying two foreign keys and the database table where each is found. Foreign key Database table The database Birds has been normalised. Draw one line from each Normal Form to the most appropriate definition. Normal Form Definition All fields are fully dependent on the primary key. There are no repeating groups of attributes. There are no partial dependencies. First Normal Form (1NF) Second Normal Form (2NF) Third Normal Form (3NF) Part of the database table BIRD_TYPE is shown: BirdID Name Size Blackbird Medium Jay Large Raven Large Robin Small The database only supports these data types: • character • varchar • Boolean • integer • real • date • time Write a Structured Query Language (SQL) script to define the table Bird_Type. The database tables are repeated here for reference: BIRD_TYPE(BirdID, Name, Size) BIRD_SEEN(SeenID, BirdID, Date, Location, PersonID) PERSON(PersonID, FirstName, LastName, EmailAddress) Complete the SQL script to return the number of birds of each size seen by the person with the ID of J_123. SELECT BIRD_TYPE.Size, (BIRD_TYPE.BirdID) AS NumberOfBirds FROM BIRD_TYPE, WHERE = "J_123" AND BIRD_TYPE.BirdID = BIRD_TYPE.Size;
3
4