Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: Database Desing -- Help Needed!

Started 1 month, 1 week ago by Frico
Hi All! I am Frico and I need help designing my Database! I have a maffia-style game, I am only in the designing fase. But I have a database and I got some questions about how to make a database as most affective as possible. Here are some questions: I got a table for members, there is a lot of information about members. What is most affective? Put everything in one table or put...
Site: dBforums - Database Support Community  dBforums - Database Support Community - site profile
Forum: MySQL  MySQL - forum profile
Total authors: 2 authors
Total thread posts: 22 posts
Thread activity: no new posts during last week
Domain info for: dbforums.com

Other posts in this thread:

ameyer replied 1 month, 1 week ago
First thing I would do is read on database normalization. That will help with number 1. #2. You will be fine. Forums with hundreds of thousands of messages work perfectly fine on mysql. Holding the information will not slow the server at all. The queries could slow if not properly indexed, but the information is only accessed as needed, so this is not an issue. #3 the data will technically...

Frico replied 1 month, 1 week ago
Hi, I have some new questions I am now working to make the database with each Form. But I am now stuck on how to make some tables. Here I have a image about what relations and tables I already have. It's only a beginning: Well you have with a maffia website always times before you can do a crime again or the time you need to spend in jail. Well do you think it is usefull to put ...

Frico replied 1 month, 1 week ago
Hi, I have some new questions I am now working to make the database with each Form. But I am now stuck on how to make some tables. Here I have a image about what relations and tables I already have. It's only a beginning: Well you have with a maffia website always times before you can do a crime again or the time you need to spend in jail. Well do you ...

ameyer replied 1 month, 1 week ago
It all depends on the normalization. However. For family members. If everyone has a set number, then you dont really ned a different table. But if even one person has a different number of family members, you need a separate table for that. Especially if people can share family members. Currently your DB setup is not relational. You don't have foreign keys to allow for cross referencing...

ameyer replied 1 month, 1 week ago
It all depends on the normalization. However. For family members. If everyone has a set number, then you dont really ned a different table. But if even one person has a different number of family members, you need a separate table for that. Especially if people can share family members. Currently your DB setup is not relational. You don't have foreign keys to ...

Frico replied 1 month, 1 week ago
Well I don't need a Family Member table then, you can just search the member list with the correct FID that connects to the familyID. But I don't quite understand what you mean that my DB setup is not relational. For the Car Table, I think it is not necessary to put in each table the carID. Because when I want to show the list of cars that a specific user has. I can just search the ...

ameyer replied 1 month, 1 week ago
True about being able to look at the cars table. But then you need to do one search to get the user data and a second one for the cars. You want to do it in one search you want SELECT * FROM users, cars WHERE cars.user_id = user.user_id AND user.user_id = 3 This will give you everything about the user including their cars. What you have is SELECT * FROM users WHERE user....

Frico replied 1 month, 1 week ago
Do you mean like this? And do I need to make cross referencing for every table?? And for the family setup why was this wrong? Because I didn't mean with family, specific members related to each other like uncle etc. But I meant it like a clan:P

Frico replied 1 month, 1 week ago
Do you mean like this? And do I need to make cross referencing for every table?? And for the family setup why was this wrong? Because I didn't mean with family, specific members related to each other like uncle etc. But I meant it like a clan:P

ameyer replied 1 month, 1 week ago
Yeah. I would. Its called foreign keys. It is what makes it so efficient. For the family. If the "clan or gang" is other members. Then you dont need to store anything aside from the user_id and the relatedTo_id You were storing other information such as their money etc. That is all stored in the user table. So you dont need it twice. You should never need repeated information in ...

 

Top contributing authors

Name
Posts
Frico
12
user's latest post:
Database Desing -- Help Needed!...
Published (2009-11-20 09:44:00)
I think I understand what I did wrong, it looks good now And I wondered what should I do? Keep the database connection all the time running, or make a connection with the database everytime I need something out of the database?
ameyer
10
user's latest post:
Database Desing -- Help Needed!...
Published (2009-11-19 16:21:00)
For drugs, I would make an items table. But that is all im am saying. See how much time you wasted here already? Everything I know here I learned from 2 chapters of one book. If you had read the same thing you would be a week ahead of your self already. Im sorry, But im not answering anymore questions. It is for your own good. Go read a book and find out how to do it correctly.

Related threads on "dBforums - Database Support Community":

Related threads on other sites:

Thread profile page for "Database Desing -- Help Needed!" on http://www.dbforums.com. This report page is a snippet summary view from a single thread "Database Desing -- Help Needed!", located on the Message Board at http://www.dbforums.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity