Back to the 2021 paper

Unit 1: Database System Architecture

202114m

Construct an E-R diagram for a car insurance company that has a set of customers, each of whom owns one or more cars. Each car has associated with it zero to any number of recorded accidents..

Worked SolutionAI Assisted

E-R Diagram for Car Insurance Company:

Entities:

  • Customer (attributes: cust_id PK, name, address, phone)
  • Car (attributes: car_id PK, model, year, color, reg_no)
  • Accident (attributes: acc_id PK, date, location, damage_amount) - weak or regular, depends on design; accident identified by car + date.

Relationships:

  • Owns: Customer (1) -- (N) Car, total participation on Car side (each car owned by one customer), cardinality one-to-many, key of Customer included in Car as foreign key if mapped.
  • Involved/Has: Car (1) -- (N) Accident, zero to many (0..*), each car may have zero or many accidents, each accident belongs to one car. Accident could be weak entity with Car as owner, partial key acc_id or date.

If accident is weak: Car --< Accident (double diamond), accident PK = car_id + acc_no.

Constraints: Customer owns at least one car, Car owned by exactly one Customer, Accident associated with exactly one Car.

Diagram: Rectangles for Customer, Car, Accident; Diamonds for Owns and Had; Lines with cardinalities (1:N). Show primary keys underlined, weak entity double rectangle, identifying relationship double diamond. No image URL required - textual description suffices for construction.

Similar questions

Database Management SystemConstruct an *E-R diagram* for a university registrar's office. The office maintains data about each class, including the instructor, the enrollment, and the time and place of the class meetings. For each class pair, a grade is recorded. Document all assumptions that you make about the mapping constraints.202014mDatabase Management SystemDesign an ER diagram for a Hospital Management System containing Patients, Doctors, Departments, and Appointments. Clearly identify entities, attributes, relationships, and cardinalities.20257mDatabase Management SystemDiscuss the correspondence between E-R model construct and the relation model construct. Show how each E-R model construct can be append to the relational model using the following description of an organization: An organization uses number of items of an equipment to produce goods. Each item is at one LOCATION, of one TYPE and has a DETAILED_DISCRIPTION. Faults on the equipment are identified by a unique FAULT_ID and are reported at a TIME_REPORTED. Any number of persons may be assigned to a fault and work on the fault until it is fixed. The TIME_FIXED is recorded as the TIME_SPENT by each person on a fault. Any number of parts may be used to repair a fault. The QTY_USED of each part is recorded against the fault. Each part is identified by a PART_ID and has a given weight and MAX_DIMENSION and can have any number of colors.201910mDatabase Management SystemWrite a short note on types of attributes and their representation in E-R model with neat figures.20194m
AI LearningWeb Platform

Coursify — Personal AI Course Generator

Struggling with a difficult subject or concept? Turn any engineering topic into a structured course with interactive lessons, quizzes, and research-backed explanations.