Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close


Good! How about foreign keys? Rings a bell?


A spare part warehouse needs a database to keep information about the spare parts it offers. Based on the ERD below, create the table spare_part. If a vehicle is updated/removed from the table vehicle, the affected rows in the table spare_part should be updated/deleted accordingly.

Vehicle and spare_part tables

Stuck? Here's a hint!

Foreign keys were discussed in Part 6. Do you remember them?