What is normalization? Explain different levels of
normalization?
Answer Posted / md moinuddin
1NF: If any tables have a many to many relationship this must be broken out using a JOIN table. For example, Customers can have many Suppliers and Suppliers can supply to many Customers. This is known as a many to many relationship. You would need to create a JOIN table that would have a primary key made up of a foreign key reference to the Customers table and a foreign key reference to the suppliers table. Therefore the SuppliersPerCustomer table would be {SupplierID, CustomerID}. Now the Suppliers table will have a 1 to many relationship with the SuppliersPerCustomer table and the Customers table will also have a 1 to many relationship with the SuppliersPerCustomer table.
2NF: The database must meet all the requirements of the 1NF.
In addition, records should not depend on anything other than a table's primary key (a primary key can be made up of more than one field, only if absolutely necessary like in a JOIN table).
Example:
A customers address is needed by the Customers table, but also by the Orders, and Invoices tables. Instead of storing the customer's address as a separate entry in each of these tables, store it in one place, either in the Customers table or in a separate Addresses table.
3NF : The database must meet all the requirements of the 1NF and 2NF.
A relational table is in third normal form (3NF) if it is already in 2NF and every non-key column is non transitively dependent upon its primary key.
The Customer table contains information such as address, city, postcode imagine it also contained a column called shipping cost. The value of shipping cost changes in relation to which city the products are being delivered to, and therefore is not directly dependent on the customer even though the cost might not change per customer, but it is dependent on the city that the customer is in. Therefore we would need to create another separate table to hold the information about cities and shipping costs.
| Is This Answer Correct ? | 5 Yes | 5 No |
Post New Answer View All Answers
When installing the datastage7.5x2 edtion iam getting aproblem i.e the cpu count is 2 but the cpu count in installation is one . how can i install in my p.c (system is dual core).
What are the types of database model?
Hi my program is accesing data from two db2 databases.what is the bind card for this program to genarate plan? how to specify the two owners and two qualifiers in bind card
In which database can extended stored procedures be added?
In which table collections errors are stored.
Write short notes on manual refreshes.
What are the key features of dbms?
What is data modeling with example?
Why does this query return 0?
What are data modelling techniques?
How to use timestamp datatypes
How to read and create .LDC data files which are used by linguatic dictionary.
Write the fastest query to find out how many rows exist in a table?
fact table and dimension table containg one to many relationship or many to one relastionship
What is database design and development?