Professional Documents
Culture Documents
The Gill Art Gallery wishes to maintain data on their customers, artists and paintings. They
may have several paintings by each artist in the gallery at one time. Paintings may be bought
and sold several times. In other words, the gallery may sell a painting, then buy it back at a
later date and sell it to another customer.
Normalize the data based on the information above as much as possible as UNF, 1NF, etc.
Provide any justification as needed wherever necessary.
The given form will be stored in below fat formed database table as below:
CustomerID Fname Lname Street City State ZipCode Artist Title Customer_Purchase_Date
Sales_Price
Where Artist, Title, Customer_Purchase_Date, Sales_Price will have multiple values in it for
a single record as below sample:
Consider column Artist, it has ID as well as Name. Let’s break the column Artist to
Artist_ID and Artist_Name considering that Artist_ID is unique.
Removing functional dependencies from non-key attributes and making 2NF tables:
Break the table as below to store the functional dependencies independently in separate table:
Painting: This table will store the Title as primary key assuming that title is unique for all
paintings having a Buy_Date:
Title Sales_Price Buy_Date
Sale Table: The table will have the Sale details with (CustomerID, Title,
Customer_Purchase_Date) as primary key. This table has the assumption that the customer will
buy the same painting again on different Customer_Purchase_Date. The same is shown as
below:
CustomerID(fk) Customer
Title(fk) Purchase_Date
Painting: This table will store the Title as primary key assuming that title is unique for all
paintings having a Buy_Date:
Title Buy_Date
Sales_Price
Sale Table: The table will have the Sale details with (CustomerID, Title,
Customer_Purchase_Date) as primary key. This table has the assumption that the customer will
buy the same painting again on different Customer_Purchase_Date. The same is shown as
below:
CustomerID(fk) Customer_Purchase_Date
Title(fk)