-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.txt
24 lines (14 loc) · 1013 Bytes
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
The design of table is as following:
1) Items(ItemID, Name, Currently, Buy_Price, First_Bid, Location, Latitude, Longitude, Country, Started, Ends, SellerID, Description), primary key(ItemID), foreign key: SellerID->Sellers.UserID
2) Bids(ItemId, UserID, BidTime, Amount), primary key(ItemId, UserID, BidTime), foreign key: ItemID->Items.ItemID, UserID->Bidders.UserID
3) Categories(ItemID, Category), primary key(ItemID, Category), foreign key: ItemID->Items.ItemID
4) Sellers(UserID, Rating), primary key(UserID)
5) Bidders(UserID, Rating, Address, Country), primary key(UserID)
The functional dependences:
Items.ItemID -> Name, Currently, Buy_Price, First_Bid, Location, Latitude, Longitude, Country, Started, Ends, SellerID, Description
(ItemId, UserID, Time)-> Amount
Sellers.UserID -> Rating
Bidders.Bidders -> Rating, Address, Country
BCNF:
Since the left side of all function dependencies are superkey of corresponding table, it satisfies BCNF constraints.
Satisfy Fourth Normal Form (4NF)