Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Construct an E-R diagram for a car-insurance company whose customers own one or more cars each. Each car has associated with it zero to

image

Construct an E-R diagram for a car-insurance company whose customers own one or more cars each. Each car has associated with it zero to any number of recorded accidents. driver-id address person name driver owns license Car insurance tables: person (driver-id, name, address) car (license, year, model) model car year participated damage-amount report-number (b) Construct appropriate tables for the above ER Diagram? accident (report-number, date, location) participated (driver-id, license, report-number, damage-amount) accident location date 1. Create tables with necessary primary and foreign key. 2. Insert values in person table not allowing iver_id with any negative value. 3. Insert values in car table with default year as "2020". 4. Insert values in accident table with default location as "usa". 5. Make sure the car table with year column will not allow value/year less than 1960.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

Answer Solution TablePerson Person driverid name address Pri... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database System Concepts

Authors: Henry F. Korth, S. Sudarshan

4th Edition

978-0073523323, 0-07-255481-9, 73523321, 978-0072554816

More Books

Students also viewed these Electrical Engineering questions

Question

Explain how religious attitudes affect firm behavior.

Answered: 1 week ago