Computer Science 9608 · 8

8.1 Database concepts

53 questions in this subtopic. Open a question to solve it and check the official answer.

Reset
2018 May-June · Paper 12 · Q7(b)

Database concepts · 3 marks · official answer ready

(b) A database administrator decides to enforce referential integrity. Use an example from the database WEBDATA to explain what is meant by referential integrity. ................…

2018 May-June · Paper 12 · Q7(c)

Database concepts · 3 marks · official answer ready

(c) The database has been normalised to Third Normal Form (3NF). Define the three stages of database normalisation. 1NF ...........................................................…

2018 May-June · Paper 13 · Q2(a)

Database concepts · 2 marks · official answer ready

2 A company writes applications (apps) for smartphones. The company has a relational database, PURPLEGAME, which stores the information for one of its online game apps. The databa…

2017 October-November · Paper 13 · Q3(b)(i)

Database concepts · 4 marks · official answer ready

(i) The Patient ID is a seven digit number. The database designer decides to use a check digit to verify each foreign key value that a user keys in for a Patient ID. When a user a…

2017 October-November · Paper 13 · Q7(a)(i)

Database concepts · 2 marks · official answer ready

(i) Underline the primary key for each table in the following suggested table designs. PATIENT(PatientID, PatientName, Address, Gender) DOCTOR(DoctorID, Gender, Qualification) APP…

2017 October-November · Paper 13 · Q7(a)(ii)

Database concepts · 2 marks · official answer ready

(ii) Complete the following entity-relationship (E-R) diagram for this design. [2]

2017 May-June · Paper 11 · Q1(b)(ii)

Database concepts · 2 marks · official answer ready

(ii) Explain how the relationship in part (a) is implemented. .....................................................................................................................…

2017 May-June · Paper 11 · Q1(c)(ii)

Database concepts · 2 marks · official answer ready

(ii) The design for the Area B data is as follows: B-NURSE(NurseID, FirstName, FamilyName, Specialism) B-WARD(WardName, NumberOfBeds, Specialism) B-WARD-NURSE( ...................…

2017 May-June · Paper 11 · Q1(c)(iii)

Database concepts · 2 marks · official answer ready

(iii) Draw the relationships on the entity-relationship (E-R) diagram. B-NURSE B-WARD B-WARD-NURSE [2]

2017 May-June · Paper 12 · Q1(a)

Database concepts · 1 mark · official answer ready

(a) Explain what the degree of relationship is between the entities SHOP and SUPPLIER. ............................................................................................…

2017 May-June · Paper 12 · Q1(b)(i)

Database concepts · 3 marks · official answer ready

(i) Label the entities and draw the relationships to complete the revised E-R diagram. SUPPLIER [3] 3

2017 May-June · Paper 12 · Q1(b)(ii)

Database concepts · 5 marks · official answer ready

(ii) Complete the following table to show for each database table: • the primary key • the foreign key(s) (if any): ° Each table may contain none, one or more foreign key(s). ° Fo…

2017 May-June · Paper 12 · Q1(b)(iii)

Database concepts · 2 marks · official answer ready

(iii) The database designer has implemented SUPPLIER.ContactPerson as a secondary key. Describe the reason for this. ..............................................................…

2017 May-June · Paper 12 · Q1(c)(i)

Database concepts · 3 marks · official answer ready

(i) Write an SQL query to display the shop ID and location of all shops with a ‘GROCERY’ specialism. ..............................................................................…

2017 May-June · Paper 12 · Q1(c)(ii)

Database concepts · 3 marks · official answer ready

(ii) The existing shop with ID 8765 has just used the existing supplier SUP89 for the first time. Write an SQL script to add this data to the database. ...........................…

2017 May-June · Paper 13 · Q1(c)(iii)

Database concepts · 2 marks · official answer ready

(iii) Draw the relationships on the entity-relationship (E-R) diagram. B-NURSE B-WARD B-WARD-NURSE [2]

2016 October-November · Paper 11 · Q1(a)

Database concepts · 5 marks · official answer ready

1 (a) Five descriptions and seven relational database terms are shown below. Draw a line to link each description to its correct database term. Description Database term Any objec…

2016 October-November · Paper 12 · Q9(b)

Database concepts · 2 marks · official answer ready

(b) The programmer decides to use three tables: MEMBER, BOOKING and CLASS. Complete the Entity-Relationship (E-R) diagram to show the relationships between these tables. MEMBER CL…

2016 October-November · Paper 13 · Q1(a)

Database concepts · 5 marks · official answer ready

1 (a) Five descriptions and seven relational database terms are shown below. Draw a line to link each description to its correct database term. Description Database term Any objec…

2016 May-June · Paper 11 · Q8(b)(i)

Database concepts · 2 marks · official answer ready

(i) Describe how this relationship is implemented. ................................................................................................................................…