Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
Oggie25
Starting Member
1 Post |
Posted - 2012-11-09 : 17:59:57
|
Currently I am trying to learn database normalization which is not very easy for me to understand. I found some data examples and I was trying to do normalization but I am not sure that I am doing it correctly.What I found is :Trip_idDepartureReturnDurationDriver_first_nameDriver_last_nameVehicle_registrationManifest_barcodeItem_weightPickup_customerDelivery_customerCategoryDescriptionRequirementsWhat I end up with is :(1NF)Trip_id-------Primary keyDepartureReturnDurationDriver_first_nameDriver_last_nameVehicle_registrationManifest_barcodeItem_weightPickup_customerDelivery_customerCategoryDescriptionRequirements(2NF)Trip_id--------Primary keyDepartureReturnDurationDriver_first_nameDriver_last_nameVehicle_registrationTrip_id-----------------Primary keyManifest_barcode-------Primary keyItem_weightPickup_customerDelivery_customerCategoryDescriptionrequirements(3NF)Trip_id-----------Primary keyDepartureReturnDurationDriver_first_nameDriver_last_nameTrip_id----------------Primary keyManifest_barcode-----------Foreign keyItem_weightPickup_customerDelivery_customerManifest_barcode-----------Primary keyVehicle_registration------------Foregin keyCategoryDescriptionRequirementsIs this right ?or I am doing something wrong and WHY?ThanksEdit/Delete Message |
|
|
|
|