ExamBank Scot · Higher Computing Science question bank · All Higher Computing Science questions
3 marks · Analysis and evaluation
State one functional requirement of the relational database. Cara has created a relational database that uses three tables. Student Tutor Session studentID studentName studentAddress studentContactNo tutorID tutorName tutorAddress tutorContactNo hourlyRate sessionID sessionDate sessionTime duration tutorID* studentID* Draw an entity‑relationship diagram to show the relationships that exist in this database. Your answer should show the entity names and cardinality. Attributes are not required on the diagram. Cara runs a private tutoring company for Computing Science students. Cara requires a relational database to: • store data on students, tutors and sessions • display the contact details for a particular tutor or student • display the number of sessions for a particular date • display the total fees that each tutor has been paid • display the tutor who charges the lowest hourly rate.
• (Create a query to) search for the contact details for a particular tutor or student • (Create a query to) count the number of tutor sessions on a particular date • (Create a query using SUM to) calculate the total tutor fees that each staff member has been paid • (Create a query using MIN) to calculate the tutor who charges the lowest hourly rate • Create/update/delete records to store details of student, staff and tutor sessions 1 mark for any one bullet 1 mark for each correct relationship