Class Diagram to Database Table Help
Please see attached a class diagram that i have created. I am looking to design a normalised database for this project that i am doing for college.
Here is what i have come up with so far.
Can anyone tell me if this is correct or not?
Dj Booking table
Equipment Booking table
Corporate Customer Table
category (should i have another table called category and have this field categoryid???)
No, it is not correct. But neither is your ER diagram.
Where is you BOOKING table???
You seem to have subsumed it TWICE into EquipmentBooking and DJBooking. I think that's a mistake. Here, the ER diagram is right.
I don't see the primary keys in any of your tables in the ER diagram. No bookingid for example. And you use customerid in your two booking tables but you don't have customerid as a primary key in your customers table. And and and and...
Yes, you clearly need a category table.
You have no fields at all in either the DJ table or the DJBookingTable that allows them to be linked together.
I'm sorry, but both the ER and the classes need to completely reworked.
|All times are GMT +1. The time now is 11:10 AM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.