(a) the term tuple.
(b) The table below, COURSE_REGISTRATION, stores information about students and the modules they have joined.
| Student_ID | Course_ID |
|---|
Practice IB Computer Science (CS) Topic A.2 the Relational Database Model with authentic exam-style questions for both SL and HL students. This question bank focuses on the exact syllabus content for A.2 the Relational Database Model and mirrors Paper 1, 2, 3 style where relevant.
Get instant solutions, detailed explanations, and build confidence with questions aligned to IB examiner expectations.
(a) the term tuple.
(b) The table below, COURSE_REGISTRATION, stores information about students and the modules they have joined.
| Student_ID | Course_ID |
|---|
(e) the difference between 2nd Normal Form (2NF) and 3rd Normal Form (3NF).
(e) how a database management system (DBMS) handles security using access control.
(e) what could be done to transform the ERD into 3NF.
(f) one issue related to privacy that might be raised if the data in this database were accessed by the police.
(e) the table(s) in 1st Normal Form (1NF), for the given data.
(f) the condition that attributes must meet, with respect to composite primary keys, to produce 2nd Normal Form (2NF).
(g) Using your answer to part 5, the table(s) in 3rd Normal Form (3NF).
| Registration_Date |
|---|
| S788 | CS102 | 2023-08-15 |
| S788 | MA105 | 2023-08-15 |
| S902 | CS102 | 2023-08-16 |
the primary key for this table and your choice.
(d) three reasons for implementing views (virtual tables) in a relational database.
Jackson City University has a Music Department that provides music lessons to students in a number of high schools in the city. The Jackson City University Music Department teachers visit the different schools in the city to teach students a range of musical instruments. The following diagram shows an unnormalized table of student data.
| Student_ ID | First_ Name | Family__ Name | Date_of_ birth | Student_Choice | School | School__ Post_Code | School_ phone_no |
|---|---|---|---|---|---|---|---|
| 305 | JOE | PARKAR | VIOLIN, PERCUSSION | Tampines | 512233 | 065544335, 065544336 | |
| 306 | MARY | ALCHIN | GUITAR, KEYBOARD | Arab Street | 198876 | 065543213 | |
| 307 | RAM | WONG |
(a) one benefit of normalizing a database.
(b) three ways that incorrect data could be prevented from being added into the School_phone_no field.
(c) what would be necessary to make the above unnormalized table conform to 1st Normal Form (1NF).
(d) the 3rd Normal Form (3NF) of the unnormalized relation shown above.
(a) two issues that can occur when a database suffers from an update anomaly.
(b) the term referential integrity.
(c) the importance of consistency in a database transaction.
(d) between the conceptual schema and the external schema in the database architecture.
A bookstore has hired you to design a database for keeping track of their books. They have provided the following description:
(a) the characteristics of a normalized database.
(b) the issues caused by redundant data.
(c) an entity-relationship diagram (ERD) for the bookstore's database that exactly represents the information in the four bullet points shown above.
(d) a component of the ERD that is not consistent with 3rd Normal Form (3NF).
The following data represent orders for shelving units. Each order specifies: - an order number
(a) why this table is not in 1st Normal Form (1NF).
(b) three advantages of normalization.
(c) , with a reason, whether "TotalPrice" alone can be a primary key.
(d) a way to ensure that "Description" contains atomic values in a table.
| GUITAR |
| Bedok |
| 467501 |
| 06543321, 065433222 |
| 308 | KATE | MOHAMA | PERCUSSION | Simei | 512233 | 065444412 |
| 309 | RYAN | TAN | GUITAR | Seng Kang | 208563 | 065667898 |
| 310 | PHILIP | BALMER | VIOLIN | Orchard | 309893 | 065756379 |
| 311 | MIKE | MOSES | GUITAR | Clementi | 308978 | 065745677 |