Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Database Design: Please create a new and complete record to be inserted into the

ID: 3869396 • Letter: D

Question

Database Design:

Please create a new and complete record to be inserted into the OPTIONAL_EQUIPMENT table created for (c). This insertion is one that will NOT violate the referential integrity constraints. This question is independent of (d). Similarly, you do not need to add this new record to the table for (c). Just indicate the new record clearly here.

SALESPERSON (Salesperson-ID, Salesperson-name, Salesperson-phone) CAR (Car-VIN, Model, Manufacturer, Sticker-price) OPTIONALEQUIPMENT (Car-VIN, Option-name, Price) DEAL (Salesperson-ID, Car-VIN, Date-of-transaction, Final-price)

Explanation / Answer

Insert into OPTIONAL_EQUIPMENT(1121,'LCD SCREEN',35000);

Here 1121 is the vin_id,m mention here the vin_id as you entered in the table CAR. I have just given an example vin_id.

And the LCD SCREEN is the option name i.e. in cars we can choose our own options which we want here I have mentioned Lcd screen as option and its price is 35000.

In this record it doesn't violate any constraints because only vin_id is the one which is having connection to other table i.e. vin_id is referenced in OPTIONAL_EQUIPMENT table from CAR table so we need to mention vin_id as the same entries in CAR table otherwise constraint will be violated.