Please Note: The class is delivered with SQL Server Express and SQL Server Management Studio. Students are encouraged to use the same software. If the student experiences problems with the installation they may use a comparable database like Oracle XE or MySQL.
The instructor will provide installation instructions upon download of the database software or assist students as required.
Students may use the online tutoring service, NetTutor, to get one-on-one help on the subjects within this course. NetTutor is paid for by CTU and free to the students in this class. Click here for the NetTutor registration guide and click here for user instructions.
You are tasked with creating the database to store information for a university of your choosing. After initial design meetings with your client, the following business rules have been determined:
- A student has a name, a birth date, and gender.
- You must track the date the student started at the university and his or her current GPA, as well as be able to inactivate him or her without deleting information.
- For advising purposes, store the student’s background/bio information. This is like a little story.
- An advisor has a name and an e-mail address.
- Students are assigned to one advisor, but one advisor may service multiple students.
- A class has a class code, name, and description.
- You need to indicate the specific classes a student is taking/has taken at the university. Track the date the student started a specific class and the grade earned in that class.
- Each class that a student takes has 4 assignments. Each assignment is worth 100 points.
The following entity tables have been composed:
StudentID int FirstName string LastName string BirthDate date Gender string StartDate date GPA number IsActive boolean Bio string AdvisorID int
AdvisorID number FirstName string LastName string EmailAddr string
ClassID int ClassCode string ClassName string Description string
StudentClassID int StudentID int ClassID int StartDate date Assignment1 number Assignment2 number Assignment3 number Assignment4 number ClassGPA number
Create a database in an SQL server, and translate this design into SQL server tables with appropriate fields. The data types above are general types. An int is an integer whole number. A number is a real number with a decimal point and fractional digits to the right of the decimal point. A string could be a single character, a few characters or even multiple paragraphs of text. Each DBMS may have several specific data types for each general type. The specific data type that you select will depend on the size and range of the values that will be stored in the field.
In the Students_Classes table, the assignment fields are used to record a grade for each of the 4 assignments in the class. Values range from 0â€“100. The GPA fields will store values from 0.00â€“4.00. In the Students table, the gender field will record an M or F.
All primary keys should be specified as â€œidentityâ€ or â€œauto-incrementâ€ fields, which means that the database management system will create a unique value for the field, each time a new row is added to the table. By default, the value starts at 1 for the first row added and increments by 1 for each new row inserted.
Your deliverable should be a Word document with the DDL script necessary to recreate all tables and relationships. Focus on proper datatypes, keys, identities, and constraints. Future assignments will depend on your design, so it is best to try and stick to the base specs. In addition to the DDL script, provide a screenshot of a diagram showing all tables and the relationships between them.
Your document will be used over the duration of this course for each of the weekly deliverables. Create an appropriate title page and table of contents with entries for each of the 5 weekly IP assignments (Week 1 IP, Week 2 IP, etcâ€¦). Content for this assignment would then correspond to the Week 1 IP.
Please submit your assignment.
For assistance with your assignment, please use your text, Web resources, and all course materials.