Click here to Skip to main content
15,889,116 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I have around 50 table objects.

i have common data in some of the tables like(product name, description,comment....)

ex: groceries, marbles, users, ....

all tables Name, remarks and some of the columns are common.

Future some more new tables are columns may come into addition, if we need to add table or column i need to touch my DB.

i come up with

one table with list of tables (master of tables) and column master table for in which table what are the columns

ex: table master : groceries,users..

column master: name,description,comment

table_column_Master: relation table for tablemaster and column master : PK of table master and PK of column master and one running id as PK for this table.

i have a data table to store all string values and maintaining relation with table_column_Master.

but i am thinking queries to perform any action is expensive. ex: to get userdetails queries to datatable is high (select query num = no.of columns for userdetails )

i am not getting any other design. please some one help me.

Regards,

Sekhar
Posted
Comments
CHill60 5-Jun-14 8:02am    
SQL Server system tables will provide you with a list of tables in a database and the columns in them. If you have "common" data replicated across multiple tables then you need to learn about database normalisation[^]
Magic Wonder 5-Jun-14 9:00am    
Kindly go through the concept of database normalization. It will help you to design and understand the database designing.

There is no easy way to database design. Database design is more an art than science. Every database is customized to suit a particular application. It calls for hard work, meticulous, and patient. The basis of database design depends on the result and quality of requirements gathering and analysis. A well designed database will capture the workflow and business rules of an orgainization.
You will have to make many decisions in the designing process. Guidelines and principles are available in making such decisions, but they are usually about "what not to do" instead of "what to do". So, ultimately you are left pretty much alone to make the decisions.
Refer:
1. 10+pitfalls+of+database+design[^]
2. Fundamentals of Relational Database Design[^]
 
Share this answer
 
Comments
sekhar Reddy P 11-Jun-14 1:39am    
Here my concern is managing common data across tables.
Ex:- Name, Description, etc., common for all tables.

Regards,
Sekhar
Posting comment as solution as there has been no other response

SQL Server system tables will provide you with a list of tables in a database and the columns in them. If you have "common" data replicated across multiple tables then you need to learn about Database Normalization[^]
 
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