首页 > 解决方案 > dbsm 中的第一种形式规范化

问题描述

我需要一个解释如何在数据库中做第一个规范化表格。

Order(orderID,  customerID, customerName, customerAddress1, customerAddress2, 
customerPostalCode customerCity, customerCountry, customerEmail, customerPhoneNumber, 
customerDOB, customerGender, bankCardNumber, bankCardExpiringDate, billingAddress1, 
billingAddress2, paymentID, paymentDetails, customerCity, orderDateOfOrder,
orderShippingDate, orderPrice, totalPrice, productID, productName, productDescription, 
productQuantity, productDiscount, productsOrdered, shipperID, companyName, 
shipperContact, supplierID, supplierPhone, supplierEmail, suplierPostalCode, 
supplierCompanyName, supplierAddress1, supplierAddress2,  supplierCity)

什么方法对第一个规范化形式有好处,规则应该是消除重复组,这到底是什么意思?

感谢您的帮助

标签: database

解决方案


将重复组视为在每条记录中不必要地重复的信息。例如,在您的示例中,来自同一客户的每个订单都需要为每个订单记录重复所有客户信息。客户信息应该被“规范化”到它自己的“客户”表记录中,而不是包含在订单记录中。


推荐阅读