need to create this table and insert the information into it
Attendance Item 11 & 12.pdf
Attendance Item 11 & 12
1. Create a new table in the HR schema called Student using the specification below:
student_id NUMBER(1) NOT NULL CONSTRAINT std_pk PRIMARY KEY,
first_name VARCHAR(15) NOT NULL,
last_name VARCHAR(25) NOT NULL,
email VARCHAR(60) NULL,
street VARCHAR(50) NOT NULL,
city VARCHAR(40) NOT NULL,
state CHAR(2) NOT NULL,
zip CHAR(5) NOT NULL,
phone VARCHAR(20) NOT NULL,
birth_date DATE NOT NULL,
sex VARCHAR(6) NOT NULL,
date_entered DATE,
lunch_cost FLOAT NULL);
2. Next create a second table called Grade
Note that all fields listed below are required and cannot be blank.
grade_id number(1) PK
student_id number(1) integer
course_number text 6
semester text 6
year number(1)
credits number(1)
grade text 2
3. Enter data into tables from the School Data worksheet into the database.
4. When finished, submit the SQL textfile to the dropbox
School Data Worksheet.xlsx
Students
| Student Data | ||||||||||||
| student_id | first_name | last_name | street | city | state | zip | phone | birth_date | sex | date_entered | lunch_cost | |
| 1 | Harry | Truman | [email protected] | 202 South St | Vancouver | WA | 98660 | 792-223-9810 | 1946-1-24 | Male | SYSDATE | 3.5 |
| 2 | Shelly | Johnson | [email protected] | 9 Pond Rd | Sparks | NV | 89431 | 792-223-6734 | 1970-12-12 | Female | SYSDATE | 3.5 |
| 3 | Bobby | Briggs | [email protected] | 14 12th St | San Diego | CA | 92101 | 792-223-6178 | 1967-5-24 | Male | SYSDATE | 3.5 |
| Grade Data | ||||||||||||
| grade_id | student_id | course_number | semester | year | credits | grade | ||||||
| 1 | 1 | CPT101 | Fall | 2015 | 3 | A | ||||||
| 2 | 1 | MAT110 | Fall | 2015 | 3 | F | ||||||
| 3 | 2 | CPT101 | Spring | 2016 | 3 | B | ||||||
| 4 | 3 | ENG101 | Spring | 2016 | 3 | C+ | ||||||
| 5 | 3 | HIS101 | Spring | 2016 | 3 | A- | ||||||
| 6 | 1 | MAT110 | Spring | 2016 | 3 | C+ |