Database Management
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDatabase Management

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old May 25th, 2003, 08:04 PM
charm charm is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 2 charm User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Database Design 4 College Dept

I am trying to do a class project. I want to build a database for the computer department of a college. Some of the things I want the database to provide are: to find out which instructors are teaching what classes, what classes students are enrolled for. Some classes are taught online, inperson, on PC and on MAC. A query should be able to run to tell if a class is online or being taught in person and is it being taught on PC or MAC. The classes are held in labs. There are nine labs so you should be able to find out which lab a class is being held in. Below are the tables I have created so far. I need to know if I need to add other fields to any of the tables or if I need to add tables and how to develop the relationship between the tables. I have a CourseHistory table but it seems if it really was to be used the data it contains might cause peformance issues because of so much data storage. Any help would be appreciated. Below are the tables I have created so far.

Student table
StudentID (int) – primary key not null
SFirstName (nvarchar)
SLastName (nvarchar)
SContactNumber (varchar)
SAddress (nvarchar)
SCity (nvarchar)
SState (varchar)
SZipCode (varchar)

Course table
CourseID (int) – primary key not null
CourseTitle (nvarchar)
StartDate (datetime)
EndDate (datetime)
DateWkHeld (datetime)
LabNumber (smallint) null (online courses have no labnumber)
CreditValue (smallint)
CourseDuration
CourseFee

CourseHistory table
CourseHistoryID (int) – primary key not null
CourseID (int) foreign key
StartDate (datetime)
EndDate (datetime)
DateWkHeld (datetime)
LabNumber (smallint) – null where should this be?
CourseFee – denomalization

Enrollment Table
EnrollmentID (int) prmary key not null
StudentID (int) foreign key not null
CourseHistoryID (int) foreign key not null
Instrutor D (int) foreign key
EnrollmentDate (datetime)
NumGrade (smallint)
Pass/Fail (bit)
CourseLoad(FT/PT) (bit)
TypeClassID (int) key would have one of 2 values: 1 or 2 1=MAC 2=PC)
LabNumber (smallint) foreign key
OnlineClass/InPerson (bit)
CreditClass/NonCreditClass (bit)
CourseFeePayDate

Instructor table
InstructorID (int) primary key not null
EnrollmentID (int) foreign key
IFirstName (nvarchar)
ILastName (nvarchar)
IContactNumber (varchar)
IAddress (nvarchar)
ICity (nvarchar)
IState (varchar)
IZipCode (varchar)

Last edited by charm : May 26th, 2003 at 12:21 PM.

Reply With Quote
  #2  
Old May 25th, 2003, 09:17 PM
dotcomguy dotcomguy is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: #devshed @ irc2.beyondirc.net
Posts: 231 dotcomguy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 m 40 sec
Reputation Power: 6
Send a message via ICQ to dotcomguy Send a message via AIM to dotcomguy Send a message via Yahoo to dotcomguy
The tables did not attach.

Also, you may want to start with an abstract model than go straight to tables. (ER/UML modeling).
__________________
.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > Database Design 4 College Dept


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway