Created
April 1, 2019 19:27
-
-
Save goxr3plus/37471d13a12ffc613ebd0f36afe560b6 to your computer and use it in GitHub Desktop.
Anjelo's Oracle SQL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--Drop every cancer table --Uncomment the below if you are sure the db tables exist | |
--DROP TABLE Instructor; | |
--DROP TABLE Subject_Area; | |
--DROP TABLE Courses; | |
--Create Instructor Table: | |
CREATE TABLE Instructor | |
( id number NOT NULL, | |
name varchar2(150) NOT NULL, | |
CONSTRAINT instructor_id PRIMARY KEY (id) | |
); | |
--Create Subject_Area Table: | |
CREATE TABLE Subject_Area | |
( id number NOT NULL, | |
name varchar2(150) NOT NULL, | |
CONSTRAINT subject_area_id PRIMARY KEY (id) | |
); | |
--Create Courses Table: | |
CREATE TABLE Courses | |
( id number NOT NULL, | |
name varchar2(150) NOT NULL, | |
CONSTRAINT course_id PRIMARY KEY (id) | |
); | |
--Create Person-Address Table: IT DOESN'T RUN FOR SOME FUCKING REASON | |
--CREATE TABLE Person-Address | |
--( id number NOT NULL, | |
-- street varchar2(150) NOT NULL, | |
-- numberr number NOT NULL, | |
-- post_code number NOT NULL, | |
-- country varchar2(150) NOT NULL, | |
-- CONSTRAINT person_address_id PRIMARY KEY (id) | |
--); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment