Jump to content

[SOLVED] mysql repeat data


Locked

Recommended Posts

Hi i have looked at database normalization but what i cant desicde where do i stop with not having repeat data and having each feild in its own table?

 

Like say i have a feild in the users table for fsig (forum signature), not everyone is going to have one so should there be another table with

fsig,psig and msig (Forum, profile and mail) and assign a userid (related to the users table) to that table or just have the 3 feilds in the user table?

 

Thats just an example, was wondering if their is a general rule or what not.

Link to comment
https://forums.phpfreaks.com/topic/78031-solved-mysql-repeat-data/
Share on other sites

this is not php this is sql this should be on mysql board ..

 

anyways sample..

 

member                  member_fruit                    fruits

 

myid +-----------<    member_id              +--+  fruits_id

name                      fruit_id>-------------        name

lastname                                                        price

address                                                        etc

etc.. 

 

in that sample you dont need to enter repeated members info just    to show his/her favorites fruit                                                         

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.