Click here to Skip to main content
15,908,254 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Actually i am building a software for academic institutions, so i just wanted to know answers of a few questions:

1) As you know the some new data will be generated each year(for new admissions) and some will be upgraded. So i should store all the data in one single table with academic year separation(as a column like ac_year) , or should i make separate tables for each year. Also that there are to be different tables to store information like, classes, marks, fee, hostel, etc about the students. So each Info, like Fee would be store in different tables like
Fee-2010
Fee-2011
Fee-2012...

Or in 1 single Fee table with year as a columns.

One more point is that soon after 1-2 years database will get heavier so backing up data for a single year would be possible in single table(Like Fee with year as a column) ?

And
Please answer keeping in mind SQL Server 2005.

Thanks
Posted
Updated 28-Feb-13 3:16am
v2

1 solution

The quick and not great answer is: A little of this, and a little of that.
Both methods are valid solutions. I personally don't like the idea of having an application built that will require structural updates for each year, so I would lean towards a two table system where you have one "live" data table where current data is stored and a single "archive" table where all out-of-date data gets moved to using an automated SSIS process.
 
Share this answer
 
Comments
Ag_Sharad 28-Feb-13 9:28am    
u are right, but the thing is that i have separate tables for each information category like, Fee, hostel...... So i would have to keep an Archive table and a current table for all the different categories(tables)
gvprabu 28-Feb-13 10:28am    
Hi,
If Data are same category means, Go for single Table.
In case if you will go for different tables then based on category you need to change the JOIN Condition in all SPs. So based on your Data you will take a right decision.

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