Home / Expert Answers / Computer Science / instructions-there-are-seven-normal-forms-described-in-your-textbook-in-practice-most-database-de-pa841

(Solved): Instructions There are seven normal forms described in your textbook. In practice, most database de ...



Instructions

There are seven normal forms described in your textbook. In practice, most database designers only adhere to the first three normal forms. Describe three small tables that are NOT in each of the first three normal forms. Describe each of the 3 tables using the syntax below:

NF1

Table(col1, col2, etc.)

NF2

Table(col1, col2, etc.)

NF3

Table(col1, col2, etc.)

and indicate why each of them is not in the indicated normal form.



We have an Answer from Expert

View Expert Answer

Expert Answer



Normalization :
To prevent data duplication and preserve data consistency, the normalization process in database architecture is essential. The First normal form (NF1), second normal form (NF2), and third normal form (NF3) are the first three steps in the normalization process.


1) NF1:
The rule for NF1 is each column in a table must have atomic values, which means that it cannot have multiple values or repeating groups, according to the first normal form (NF1). This implies that there should be a single, indivisible value in each cell of the table.

The below table is not in NF1:




Tables should be designed to contain a single value in each column for each row in order to adhere to NF1. If a table has repeated groups of columns, those groups should be separated into distinct tables, and if a column contains multiple values, those values should be split into separate columns.

In the above example, because the columns "item1," "item2," and "item3" contain recurring sets of data, this table deviates from the first normal form. We must make a new table to house the items and use a foreign key to connect them to the order in order to normalize this table. The structure of the normalized table would resemble this:

Table orders(order_id, customer_name)

Table order_items(order_id, item_name)

In this structure, the order_items table contains the items associated with each order, whereas the orders table has the order information.


We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe