If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > Design question about storing info on different schools

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-23-08, 19:14
temjin747 temjin747 is offline
Registered User
 
Join Date: Nov 2008
Posts: 2
Design question about storing info on different schools

Hello all,

I'm trying to design a database that stores information about different schools, which will be used in a web app. The information (in tables) for each school I am storing include students, majors, professors, courses, and course categories. I can easily design the tables for a single school, but the problem I am having is how to design the tables so that I can store this information for more than one school. Is it better to:
-try to store all the information on all the schools in one db
or
-create a different instance of a db for each school, and when the user wants information on a specific school, select the specified database.

Thanks!
Reply With Quote
  #2 (permalink)  
Old 11-23-08, 19:17
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
one database

have a schools table

then use school foreign keys to distinguish all the other entities (i.e. school students, school professors, etc.)
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 11-23-08, 19:50
temjin747 temjin747 is offline
Registered User
 
Join Date: Nov 2008
Posts: 2
Quote:
Originally Posted by r937
one database

have a schools table

then use school foreign keys to distinguish all the other entities (i.e. school students, school professors, etc.)
Thanks for your reply!

I was thinking about doing this before, but lets say each school averages 10,000 students and I'm trying to store information on 10 schools? The tables would then get pretty large. Is that ok?
Reply With Quote
  #4 (permalink)  
Old 11-23-08, 20:17
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
100,000 rows is modest

100,000,000 rows would be "pretty large"

__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On