Skip to content

Instantly share code, notes, and snippets.

@DannyFeliz
Created September 2, 2017 21:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save DannyFeliz/582b3d359c0916f497f75f90cd0a4862 to your computer and use it in GitHub Desktop.
Save DannyFeliz/582b3d359c0916f497f75f90cd0a4862 to your computer and use it in GitHub Desktop.
JOB_GRADES TABLE - ORACLE
CREATE TABLE job_grades (
grade CHAR(1),
lowest_sal NUMBER(8,2) NOT NULL,
highest_sal NUMBER(8,2) NOT NULL
);
ALTER TABLE job_grades
ADD CONSTRAINT jobgrades_grade_pk PRIMARY KEY (grade);
INSERT INTO job_grades VALUES ('A', 1000, 2999);
INSERT INTO job_grades VALUES ('B', 3000, 5999);
INSERT INTO job_grades VALUES ('C', 6000, 9999);
INSERT INTO job_grades VALUES ('D', 10000, 14999);
INSERT INTO job_grades VALUES ('E', 15000, 24999);
INSERT INTO job_grades VALUES ('F', 25000, 40000);
COMMIT;
@AbhishekKadam1980
Copy link

Thanks...very handy...:)

@Ellian-1
Copy link

Thank you very much bro

@jagasia
Copy link

jagasia commented Mar 5, 2021

Thank you so much 👍

@Daniels-not
Copy link

Daniels-not commented May 27, 2021

Thank you, this is going to be my first project on oracle < : onell

@AsfandSoomro
Copy link

Thanks, was in need of this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment