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 > Database design review

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-24-10, 20:45
ZMZ ZMZ is offline
Registered User
 
Join Date: Oct 2010
Posts: 3
Database design review

Hello Everybody

This my first post. I'm totally new to the world of databases. I'm still learning, and I would like to create a database for a site of local events(sport music). The idea is kind of stupid, i would just want to know if it's technically correct.

First i have the Table of members :

memberID username password signupDate email country City ID


Then the Tables of the cites : ( i know it is kind of useless)

CityID nameOfCity country



Then the table of all the events:

nameOfEvent EventID cityID restricted(bool) TypeOfTheEvent


Then the table for each member :

UserID eventID Accepted (bool)


And finally the table for each event:

EventId UserID accepted (bool) InviteOthers (bool) Rating of the event


So as you see, I want to create a table for eache member, and for each event. I don't know if it's a good thing...
Please, would you help me correct this database, or just give me some advices?

Thanks in avance
Reply With Quote
  #2 (permalink)  
Old 10-24-10, 23:22
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
Quote:
Originally Posted by ZMZ View Post
So as you see, I want to create a table for eache member, and for each event. I don't know if it's a good thing...
it isn't

all you need is one table for member events, that will have two columns as the primary key -- memberid and eventid

also, your cities table is, as you guessed, kind of useless
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 10-25-10, 09:12
ZMZ ZMZ is offline
Registered User
 
Join Date: Oct 2010
Posts: 3
Thanks, I'm going to correct that.
Reply With Quote
Reply

Tags
database design

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