If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > Help on ERD:Database about Auctions

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-18-06, 17:09
esmeco esmeco is offline
Registered User
 
Join Date: Sep 2006
Posts: 18
Help on ERD:Database about Auctions

I'm trying to solve an exercise(studying for an exam) concerning auctions and the text is as following:

An auction organization does auctions of various product and wants to have a database that stores all the necessary information to it's appropriate functioning.
In each auction there's a couple of products available for sale.Those products are only put for sale if they are in great conditions.Only people who registered can participate in an auction.In an auction, a person can make many licitations.Each licitation get's registered as an unique identifier.A licitation referes always to one product that was for sale in an auction.At the end of the auction the licitated products are sold to the person whose liciattion value was the highest.We want to store the information about the date,value of the sale and type of payment.

Some of the attributes to register are the following:
Id_person, name,identity card,address;id_auction,date,place of auction; id_product,designation,type and base value;id_licitation and value of licitation;id_sale,value, date of sale and type of payment.

I need some help on this,and this's what I've came so far(see attachment).
Also I have a question: in what cases should we use a ternary relationship?

Thanks in advance for all the help!
Attached Thumbnails
Help on ERD:Database about Auctions-bd-er.jpg  
Reply With Quote
  #2 (permalink)  
Old 12-19-06, 08:37
esmeco esmeco is offline
Registered User
 
Join Date: Sep 2006
Posts: 18
Can anyone help me?
Reply With Quote
  #3 (permalink)  
Old 12-19-06, 08:50
blindman blindman is offline
World Class Flame Warrior
 
Join Date: Jun 2003
Location: Ohio
Posts: 11,726
A ternary relationship simply implements a many-to-many join between three tables.
URL for unauthorized site removed
__________________
If it's not practically useful, then it's practically useless.

blindman
www.chess.com: "sqlblindman"

Last edited by blindman; 12-19-06 at 09:43.
Reply With Quote
  #4 (permalink)  
Old 12-19-06, 09:01
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
btw, joe celko has nothing to do with that site (i asked him about it)

anything attributed to joe celko on that site has been plagiarized

i wouldn't aid/abet their ad-revenue-generating efforts by linking to them
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #5 (permalink)  
Old 12-19-06, 09:44
blindman blindman is offline
World Class Flame Warrior
 
Join Date: Jun 2003
Location: Ohio
Posts: 11,726
Quote:
Originally Posted by r937
btw, joe celko has nothing to do with that site (i asked him about it)

anything attributed to joe celko on that site has been plagiarized

i wouldn't aid/abet their ad-revenue-generating efforts by linking to them
I wondered about that when I say the site. URL deleted!
__________________
If it's not practically useful, then it's practically useless.

blindman
www.chess.com: "sqlblindman"
Reply With Quote
  #6 (permalink)  
Old 12-19-06, 14:59
esmeco esmeco is offline
Registered User
 
Join Date: Sep 2006
Posts: 18
...

Thank you for the explanation!And what about my er diagram?Does it look ok based on the exercise specifications?
Reply With Quote
  #7 (permalink)  
Old 12-19-06, 16:36
blindman blindman is offline
World Class Flame Warrior
 
Join Date: Jun 2003
Location: Ohio
Posts: 11,726
Its scribbled on a freakin' napkin!
You want us to decipher scrawlings that you would not even submit to your professor?
__________________
If it's not practically useful, then it's practically useless.

blindman
www.chess.com: "sqlblindman"
Reply With Quote
  #8 (permalink)  
Old 12-19-06, 22:17
esmeco esmeco is offline
Registered User
 
Join Date: Sep 2006
Posts: 18
...

No,it's not scribbled on a freakin napkin.That's the way we usually draw our diagramas on classes and that's the way the professor usually draw his diagram on classes.But I think I can do a better diagram that can look a bit more clean.
Reply With Quote
  #9 (permalink)  
Old 12-19-06, 22:44
esmeco esmeco is offline
Registered User
 
Join Date: Sep 2006
Posts: 18
...

Here's the better version of my er...Sorry for the other bad quality version...I hope this new one looks ok...Any help is much appreciated!
Attached Thumbnails
Help on ERD:Database about Auctions-auction-er.jpg  
Reply With Quote
  #10 (permalink)  
Old 12-21-06, 16:21
esmeco esmeco is offline
Registered User
 
Join Date: Sep 2006
Posts: 18
...

Is my er diagram ok?
Reply With Quote
  #11 (permalink)  
Old 12-21-06, 19:34
blindman blindman is offline
World Class Flame Warrior
 
Join Date: Jun 2003
Location: Ohio
Posts: 11,726
We don't do homework. We are not going to go through your assignment requirements and then check your work for you.
If you have a specific question, we will do our best to answer it.
__________________
If it's not practically useful, then it's practically useless.

blindman
www.chess.com: "sqlblindman"
Reply With Quote
  #12 (permalink)  
Old 12-21-06, 21:42
esmeco esmeco is offline
Registered User
 
Join Date: Sep 2006
Posts: 18
...

Well,specifically, I wanted to know if the ternary relationship looks ok as it isconsidering the information provided by the text.
Reply With Quote
  #13 (permalink)  
Old 12-22-06, 00:39
blindman blindman is offline
World Class Flame Warrior
 
Join Date: Jun 2003
Location: Ohio
Posts: 11,726
I haven't read your assignment and I'm not going to, but the diagram looks fine to me.
__________________
If it's not practically useful, then it's practically useless.

blindman
www.chess.com: "sqlblindman"
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On