Preview

After Creating the Database Schema, Use Insert, Update, and Delete Commands to Populate the Tables with the Following Information. Notice That the Values for the Primary Key Columns (Classid in the Classes Table,

Powerful Essays
Open Document
Open Document
2177 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
After Creating the Database Schema, Use Insert, Update, and Delete Commands to Populate the Tables with the Following Information. Notice That the Values for the Primary Key Columns (Classid in the Classes Table,
After creating the database schema, use Insert, Update, and Delete commands to populate the tables with the following information. Notice that the values for the primary key columns (ClassId in the Classes table, AdvisorId in the Advisors table and StudentId in the Students table) are not listed. It is assumed that they will be “Identity” or “Auto-increment” columns and the DBMS will determine the proper identity value when the row is inserted.
You may have to either modify your original data types for some of your table columns or modify the values below to fit your data types. For example, if you defined your gender column to be a 1-character column, you will need to use the values M or F instead of Male and Female. The IsActive column is another column that may require different values, depending on the type of DBMS used.

Table of Contents
Introduction 4
Students 5
Advisors 7
Classes 9
Students_Classes 11
EER Model 14
Modification of class 15
Modification of Students Table 17
Data Entered In Classes 18
Data Entered in Advisor Table 20
Data entered in Students Table 22
Deleted Investments from the system 23
Change of birthdate and GPA 24
Question #1 26
Question #2 27
Question #3 28
Question #4 29
Question #5 30
Question #6 31
Question #7 32
Reference: 33

Introduction

In this document there will be an illustration of how to make tables and connecting them with the relationship in a diagram. This information will be worked in MySQL and below will have screenshots to help understand the process. Also throughout this document that will be data types listed some of these are Bit, Int, VarChar, Decimal, and Date (Kinter, 2012).

Students

The students table is the first table that will be inserted in MySql. Once the application is up and running it is important to include the StudentID, FirstName, LastName, Birthdate, Gender, StartDate, GPA, IsActive, Bio, and AdvisorID. The StudentID is the primary key for this table and it is

You May Also Find These Documents Helpful

  • Satisfactory Essays

    PT2520 Unit7Labs Tramil

    • 330 Words
    • 1 Page

    6. What are database requirements? This is something a database must do. For instance, it must keep track of tutors and the classes for which they can tutor.…

    • 330 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    It2640 Week 5 Appendix B

    • 632 Words
    • 3 Pages

    Entities for this database application will include a Customer, Products, Orders, Sales Rep and Shipping table. The attributes for the following tables are as follows:…

    • 632 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Unit 18 - Database P1, M1

    • 995 Words
    • 4 Pages

    A Table is where you are organised and store data so you have to create the table before store any data. By creating table, you need to define few things, Fields name, Data type, and the Description.…

    • 995 Words
    • 4 Pages
    Powerful Essays
  • Powerful Essays

    b) You are to clearly mark Primary and Foreign Keys as shown in the sample below:…

    • 1494 Words
    • 19 Pages
    Powerful Essays
  • Satisfactory Essays

    2. Look at your latest grade report. Identify the fields and entities represented in the report.…

    • 421 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Rocky Mountain Outfitters

    • 258 Words
    • 2 Pages

    Verify that the new classes and relationships are accurately represented in the updated relational database design that you developed for question 1.…

    • 258 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    In this lab, you will prepare a Data Dictionary based on the list of elements. Also, your task will be determined the tables, their relationships, primary and foreign keys. Based on this analysis, you will create Database Schema, relational tables, Entity –Relational Diagram (ERD), establish connection to your local MySQL Server, create physical database and insert data to the tables.…

    • 1137 Words
    • 6 Pages
    Satisfactory Essays
  • Satisfactory Essays

    SQL Queries

    • 423 Words
    • 2 Pages

    These tables would be linked together by foreign keys; Enroll Table would be linked to Student table by FKStuID; Class would be linked to Enroll Table by FK ClassID…

    • 423 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    • Develop at least two tables, using the same step of the accounting cycle selected for your previous Learning Team assignments, that could be used in a database for your selected accounting cycle.…

    • 103 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    Entities are defined as a person, place, thing, or event in which data is collected and stored. Each entity is a unique and distinct object that may be a physical or abstract object within the real world (Coronel, Morris, & Rob, pg. 34). Entities of a database for a college that needs to keep track of students and courses would be students, professors, courses, classes, room, and enrollment status. These entities will be used to format the data within the database so that each student and course is accounted for. Attributes are characteristics of an entity, such as a name, phone number, or address (Coronel, Morris, & Rob, pg. 34). Attributes for the college database would include student first and last name, student phone number, student address, student identification number, student grade point average, student course major, and student classes to describe the student entity. The professor entity would be described by professor…

    • 906 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Complete Exercise 5 on page 284 Write SQL commands for the following: a. Create two different forms of the INSERT command to add a student with a student ID of 65798 and last name Lopez to the Student table. b. Now write a command that will remove Lopez from the Student table. c. Create an SQL command that will modify the name of course ISM 4212 from Database to Introduction to Relational Databases…

    • 368 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    2) Write a query to display the Student id and the number of grades they have received ***…

    • 400 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    Networks and Protocols

    • 1123 Words
    • 5 Pages

    The rules for valid registration are as follows. All students (both full-time and part-time) must register…

    • 1123 Words
    • 5 Pages
    Better Essays
  • Good Essays

    NOT NULL, degree_id BIGINT(20) NOT NULL, designation varchar(255) NULL, gender varchar(255) NOT NULL, FOREIGN KEY(degree_id) REFERENCES degree(Id) ); 7. create table higher_degree ( Id BIGINT(20)primary key, degree_name varchar(255) NULL, university_name varchar(255) NULL, profile_id BIGINT(20) NOT NULL, FOREIGN KEY(profile_id) REFERENCES profile(Id) ); 8. create table experience ( Id BIGINT(20)primary key, company_name varchar(255) NOT NULL,…

    • 899 Words
    • 6 Pages
    Good Essays
  • Good Essays

    This study aims to develop an automated Enrollment System for King’s College. Secured, faster and more accurate enrollment of the student’s by encoding the information using the database.…

    • 382 Words
    • 2 Pages
    Good Essays