Question

In: Computer Science

Lab 1 – Databases, Schemas, and Basic Tables For this lab we will be creating a...

Lab 1 – Databases, Schemas, and Basic Tables

For this lab we will be creating a small Student Loan Database.

Make sure to open your screenshot word document. Include the required screenshots of your code in the document.

Database: Create a new database: StudentLoan_LastName.
Schemas: Create the following schemas. Make sure to screenshot and run your code:

1. Student
2. Guarantor 3. Institution 4. Activity
5. Loan
6. Lender

Tables: First complete the word document for designing the tables like we did in the slides. Use the information below to complete the file.

Note the schemas the tables are associated with:

Schema. Table Name

Student tblStudent

Guarantor.   tblGuarantor

Institution.   tblInstitution

Activity. tblActivityReport

Loan.   tblLoan tblLoanStatement

Lender. tblLender

Finally, write and screenshot the code for creating the following tables in your database. Make sure to run the code to create the tables:

tblStudent –include the student’s names, date of birth, and gpa.

tblGuarantor – include the guarantor’s name, address, city, state, zip, and phone

number.

tblInstitution – include the institution’s name, address, city, state, zip, and phone number.

tblActivityReport - include the name of the activity, begin date for activity, end date for activity, and how much the activity costs.

tblLoan – include the name of the loan type, the amount of the loan, the begin date of the loan, the id of the guarantor of the loan, the id of the lender for the loan, and the id of the student who took out the loan.

tblLoanStatement – include the amount of the loan, the id of the student who took out the loan, the amount of money the loan is for, the graduation date of the student, and the monthly payment amount for the loan.

tblLender – include the lender’s name, address, city, state, zip, and phone number.

Backup the database file, zip it.

Submit the following:

1.the zip of your database file

2.the table creation word document

3.the code screenshots document

Grading Rubric:

Grade item   Points

Create correct database 10pts

Create all 6 schemas   20pts

Create and associate the correct tables with their schemas. Make sure to use correct data types. 30pts

Screenshot Document   15pts

Table Creation Document   25pts

Total   100pts

Deductions

Exact Same Code/Documents as Another Student   -10pts per infraction or 0 on assignment

Word Documents Not Named Correctly   -5pts per document

Incorrect database name used   -10pts

Formatting changed in Word Documents -10pts per document

Using your own Word Document instead of the one provided   No points for docs

Database Backup/Word document Incorrect/Unreadable -100pts

Solutions

Expert Solution

Tables creation:Queries

  • create table tblStudent(student_Name char(20),student_ID integer primary key,Student_DOB DATE,Student_GPA float(2));
  • create table tblGuarantor(Guarantor_Name char(20),Guarontar_ID integer primary key,Address varchar(50),city char(20),state char(10),zip integer,phoneNumber integer);
  • create table tblInstitution(Institution_Name char(20),Address varchar(50),city char(20),state char(10),zip integer,phoneNumber integer);
  • create table tblActivityReport(Activity_Name char(20),Activity_Bigin_Date DATE,Activity_End_Date DATE,Activity_Cost float(10));
  • create table tblLender(Lender_Name char(20),Lendor_ID integer primary key,Address varchar(50),city char(20),state char(10),zip integer,phoneNumber integer);
  • create table tblLoan(Loan_Type char(20),Loan_Amount integer,Loan_Begin_Date DATE,Guarantor_ID integer references tblGuarantor(Guarantor_ID),Lendor_ID integer references tblLender(Lendor_ID),Student_ID integer references tblStudent (Student_ID));
  • create table tblLoanStatement(Loan_Amount float(10),Student_ID integer references tblStudent (Student_ID),Graduation_Year_of_Std YEAR,Monthly_Payment integer);

Screenshots:


Related Solutions

We started creating a Java class for Car. In this lab we are going to complete...
We started creating a Java class for Car. In this lab we are going to complete it in the following steps: 1- First create the Car class with some required instance variables, such make, model, year, price, speed, maxSpeed, isOn, isMoving, and any other properties you like to add. 2- Provide couple of constructors for initializing different set of important properties, such as make, model, year, and price. Make sure that you do not repeat initialization of instance variables in...
In C++ In this lab we will be creating a stack class and a queue class,...
In C++ In this lab we will be creating a stack class and a queue class, both with a hybrid method combining linked list and arrays in addition to the Stack methods(push, pop, peek, isEmpty, size, print) and Queue methods (enqueue, deque, peek, isEmpty, size, print). DO NOT USE ANY LIBRARY, implement each method from scratch. Both the Stack and Queue classes should be generic classes. Don't forget to comment your code.
In C++ In this lab we will creating two linked list classes: one that is a...
In C++ In this lab we will creating two linked list classes: one that is a singly linked list, and another that is a doubly linked list ( This will be good practice for your next homework assignment where you will build your own string class using arrays and linked list ) . These LinkedList classes should both be generic classes. and should contain the following methods: Print Add - Adds element to the end of the linked list. IsEmpty...
In Java In this lab we will creating two linked list classes: one that is a...
In Java In this lab we will creating two linked list classes: one that is a singly linked list, and another that is a doubly linked list ( This will be good practice for your next homework assignment where you will build your own string class using arrays and linked list ) . These LinkedList classes should both be generic classes. and should contain the following methods: Print Add - Adds element to the end of the linked list. IsEmpty...
In C++ please: In this lab we will creating two linked list classes: one that is...
In C++ please: In this lab we will creating two linked list classes: one that is a singly linked list, and another that is a doubly linked list ( This will be good practice for your next homework assignment where you will build your own string class using arrays and linked list ) . These LinkedList classes should both be generic classes. and should contain the following methods: Print Add - Adds element to the end of the linked list....
Creating a Database Design Lab 1: Creating a Database Design (Wk 3) - OR - Draw...
Creating a Database Design Lab 1: Creating a Database Design (Wk 3) - OR - Draw with pencil and paper diagram (take photo of it and submit) along with a summary of the diagram you prepared in a Word document. Use the scenario from Assignment 1: Business Rules and Data Models to complete the lab: Suppose a local college has tasked you to develop a database that will keep track of students and the courses that they have taken. In...
We continue from the two tables in lab 3 part 2, and practice with functions and...
We continue from the two tables in lab 3 part 2, and practice with functions and the GROUP BY statement. The data in each table should be as below Table Product: PROD_ID PROD_NAME PROD_PRICE PROD_VENDOR 1101 Table 100 2 1102 Chair 80 3 1103 Armchair 90 2 1104 Nightstand 110 1 1105 Bed 200 3 1106 Dresser 150 3 1107 Daybed 190 2 1108 Ash Table 120 2 1109 Cherry Table 130 2 1110 Table - High 100 2 1111...
We continue from the two tables in lab 3 part 2, and practice with functions and...
We continue from the two tables in lab 3 part 2, and practice with functions and the GROUP BY statement. The data in each table should be as below Table Product: PROD_ID PROD_NAME PROD_PRICE PROD_VENDOR 1101 Table 100 2 1102 Chair 80 3 1103 Armchair 90 2 1104 Nightstand 110 1 1105 Bed 200 3 1106 Dresser 150 3 1107 Daybed 190 2 1108 Ash Table 120 2 1109 Cherry Table 130 2 1110 Table - High 100 2 1111...
In C++: In this lab we will creating twos arrays of Generic objects, searching through those...
In C++: In this lab we will creating twos arrays of Generic objects, searching through those arrays using BINARY and SEQUENTIAL sorts, calculate the run-time of each method, and determine the BIG O, OMEGA and THETA notation. In our object we should have some way to compare elements to determine if one element is LESS THAN, GREATER THAN, and EQUAL TO. After this Generic Class is defined with a method that allows for comparison is completed, then you will create...
For this lab we will be taking our various tables (PATIENT, BED, PERSONNEL, DEPARTMENT, TREATMENT, TEST...
For this lab we will be taking our various tables (PATIENT, BED, PERSONNEL, DEPARTMENT, TREATMENT, TEST and all ASSOCIATIVE ENTITIES), created from our normalization process and entering them into SQL Server Management Studio. For each of your tables, you will use SQL and the CREATE TABLE command to create each table with it's various columns (attributes). You will then use the INSERT INTO command to add 5 rows of data (you make up your own data) to populate each table....
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT