Six original Cambridge-style questions on entity-relationship diagrams, with worked mark points.
A bus company stores data about DRIVER, BUS and ROUTE. Each bus runs on one route and a route is served by many buses. Each bus has one regular driver, and each driver drives only one bus. State the relationship between (a) ROUTE and BUS, (b) DRIVER and BUS. (c) State which table holds the foreign key for relationship (a).
A music school stores data about TEACHER and PUPIL. A teacher teaches many pupils and a pupil can have lessons with several teachers. The school also records the instrument taught in each teacher-pupil pairing. Describe how the design should be changed so it can be implemented, naming any new table and its primary key.
Explain why a database designer draws an E-R diagram before creating the tables.
A company database has DEPARTMENT and EMPLOYEE. Each employee works in one department and each department has many employees. Each department is managed by exactly one employee and an employee manages at most one department. Identify the two relationships and their degrees.
A student draws ORDER and PRODUCT with a one-to-many relationship, crow's foot at PRODUCT. An order can contain many products and a product can appear on many orders. Explain the error and give the corrected design.
State what is represented by (a) a rectangle and (b) a line in an E-R diagram.
Mark this once you have attempted all six and checked your working. It records a Practiced badge on the topic and adds a one-time bonus. Revealing the solutions alone does not count.