Click here to Skip to main content
15,891,204 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
hello, I am have to Create database table having aproximataly 30 fields.. is it good to get all fields in a single table..?

What I have tried:

I am going to prepare database for matrimony application. the user information is to long I am thinking that split it into multiple tables rather than a single one..
Is it good for further data manipulation operations..


Please help me..
Posted
Updated 14-Nov-16 17:46pm

Most modern relational database engines work perfectly fine with a lot of columns per row and you generally don't need to think about it unless:

* Some columns are updated/used more often and you are better off storing those columns elsewhere so the engines have better cache/memory utilization.
 
Share this answer
 
Comments
Vikas Hire 14-Nov-16 6:06am    
thank you.... :)
Well, Normalization is what you should learn to solve this problem.
The simple rule could be all those 30 fields directly dependent on the same primary key then just keep them in the same table. However, you can keep few information in another table based on their usability but most of the people will recomend to have a single table if the above condition is true in your case.

Please refer to below links-
Database Normalization[^]
What is Normalization in SQL ? - SQLServerCentral[^]

Hope, it helps :)
 
Share this answer
 
Comments
Vikas Hire 14-Nov-16 6:06am    
Thanx a lot
To normalize the tables you will firstly need to create new tables, write SQL to insert the data into the new tables and then alter the original table.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900