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 > newbie design question

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-26-07, 07:28
joeyjoejnr joeyjoejnr is offline
Registered User
 
Join Date: Jun 2007
Posts: 2
newbie design question

i've to do an ER diagram and a normalised relational database schema for this:

Quote:
Five volunteers have organised a community website for discussion of topical
issues. They wish to build a relational database to support approximately
twenty discussion forums. Each forum will be moderated by one organiser
who will ensure that all messages posted to the forum are appropriate. The
database must store the name and web address of each forum and the name
and e-mail address of its moderator.
Community members will provide their name, address and e-mail address
and choose a username and password which is stored in the database. The
website will ensure that each username is unique. Members will be asked to
register separately for each forum they wish to participate in. The database
must store the date on which a member joined the website and the date on
which he/she registered for a forum.
Members will be able to start new threads of discussion or post responses
to messages in the forums for which they have registered. Each thread will
be given a title by the member who starts it. The date and time when the
thread is started will also be stored in the database. Each message which
does not start a thread will be posted in response to a previous message.
Apart from the date, time and text of the message, the database must record
the username of the member who posted the message and the identifier of
the previous message.
it is for a coursework resit and unfortuately i am crap at databases. i was thinking of creating four tables:

Members - Name, Street, City, E-mail, username, password, date joined

Forum - ForumID, ForumName, moderator

Forum Memberships - ForumID*, Username*, DateRegistered

Threads - ThreadTitle*, Username*, Time, Date, Text

anyone know if this is any use?

thanks
Reply With Quote
  #2 (permalink)  
Old 06-26-07, 09:16
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
i'd give you a C+ for that -- you got a lot of it right, but missed a few important facts

good luck with your "resit"

__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 06-26-07, 09:36
joeyjoejnr joeyjoejnr is offline
Registered User
 
Join Date: Jun 2007
Posts: 2
Quote:
Originally Posted by r937
i'd give you a C+ for that -- you got a lot of it right, but missed a few important facts

good luck with your "resit"

why is resit in inverted commas?

oh well, worth a try
Reply With Quote
  #4 (permalink)  
Old 06-26-07, 11:22
mike_bike_kite mike_bike_kite is offline
vaguely human
 
Join Date: Jun 2007
Location: London
Posts: 2,519
Go through each of the sentence in your course work and check to see if your schema represents that correctly. I think you'll pass with what you have but I'd revisit the threads bit if you want a higher mark.

Mike

PS Anybody else nostalgic for the days when cheating was done in private rather than on public forums?
Reply With Quote
  #5 (permalink)  
Old 06-26-07, 12:29
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
Quote:
Originally Posted by joeyjoejnr
why is resit in inverted commas?
because it looks like a homework assignment, not an exam
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #6 (permalink)  
Old 07-02-07, 10:18
andy4000 andy4000 is offline
Registered User
 
Join Date: Aug 2004
Posts: 11
Where are you going to store organiser details?
Can one organiser moderate several forums?

What is the relationship between Thread and Response?

Relationships can be 1:1, 1:M or M:M. How many tables do you need to represent each of these?

Answer these questions and then look again at your design

Remember to state your assumptions.

Andy

Last edited by andy4000; 07-02-07 at 10:26.
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