Vous êtes sur la page 1sur 3

Exercises

1 1. Consider an online auction database system in which members (buyers and


sellers) participate in the sale of items. The data requirements for this
system are summarized as follows:
The online site has members who are identified by a unique member id
and are described by an email address, their name, a password, their
home address, and a phone number.
member may be a buyer or a seller. buyer has a shippin! address
recorded in the database. seller has a ban" account number and
routin! number recorded in the database.
#tems are placed by a seller for sale and are identified by a unique item
number assi!ned by the system. #tems are also described by an item
title, an item description, a startin! bid price, biddin! increment, the
start date of the auction, and the end date of the auction.
#tems are also cate!orized based on a fi$ed classification hierarchy
(for e$ample a modem may be classified as
%C&'()T*+%,+-.+*%'&-*').
/uyers ma"e bids for items they are interested in. biddin! price and
time of bid placement is recorded. The person at the end of the
auction with the hi!hest bid price is declared the winner and a
transaction between the buyer and the seller may proceed soon after.
/uyers and sellers may place feedbac" ratin!s on the purchase or sale of
an item. The feedbac" contains a ratin! between 1 and 10 and a
comment. 1ote that the ratin!s are placed on a completed transaction
by the buyer or seller of the item in the transaction.
-esi!n an *nhanced *ntity2+elationship dia!ram for the auction database.
fter That 'ap your **+ into a +elational 3chema 'odel
The 3olution is on the followin! (a!es
The **+ 'odel
Members
ID
email
name
Password address
Phone
Category
O
Buyers
Routing
Number
Shipping
Address
Sellers
Account_
No
Items
Place
Item_No
Title
Desc .
Start_Price
Desc .
Increment
Start_Date
nd_Date
!ids
1
M
M
N
"eedbac
#
M
N
Rate
Comment
!idding_Price
!idding_Date
The +elational 3chema 'odel
Phone Email Address
Passwor
d
Name ID
Seller_I
D
Descriptio
n
Incremen
t
End_Dat
e
Start_Dat
e
Start_Pric
e
Categor
y
Title Item-No
$
Shipping
Address
ID
Rout_No Account_
No
ID
Bidding-
Date
Bidding-
Price
Item-No BID
Commen
t
Rate ItemNo ID
Feedback
Members
Buyers
Sellers
Bids

Vous aimerez peut-être aussi