Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
22 views
2 pages
SQL Script
Uploaded by
FARINA KHAN
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
Download
Save
Save SQL_SCRIPT For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
22 views
2 pages
SQL Script
Uploaded by
FARINA KHAN
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save SQL_SCRIPT For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 2
Search
Fullscreen
create table employees ( employee_id number(6) primary key,first_name
varchar2(20),last_name varchar2(25) not null,email varchar2(25) not null
,phone_number varchar2(20),hire_date date not null ,job_id varchar2(10) not
null,salary number(8,2), department_id number(4), manager_id
number(6),commission_pct number(2,2));
prompt
insert into employees values(100, ' Steven', 'king', 'SKING', '515.123.4567' ,
'17-JUN-87' , 'AD_PRES', 24000,90, null ,null );
insert into employees values(101, 'Neena', 'Kochhar', 'NKOCHHAR',
'515.123.4568' ,'21-SEP-89' , 'AD_VP', 17000,90,100,null);
insert into employees values(102, 'Lex','De Haan', 'LDEHAAN', '515.123.4569' ,'13-
JAN-93' , 'AD_VP',17000,90 ,100,null);
insert into employees values(103, 'Alexander','Hunold', 'AHUNOLD',
'590.423.4567' ,'03-JAN-90' , 'IT_PROG',9000, 60, 102,null );
insert into employees values(104, 'Bruce','Ernst', 'BERNST', '590.423.4568' ,'21-
MAY-91' , 'IT_PROG',6000,60 ,103,null);
insert into employees values(107, 'Diana','Lorentz', 'DLORENTZ',
'590.423.5567' ,'07-FEB-99' , 'IT_PROG',42000, 60,103,null );
insert into employees values(124, 'Kevin','Mourgos', 'KMOURGOS',
'650.123.5234' ,'16-NOV-99' , 'ST_MAN',5800,50 , 100,null );
insert into employees values(141, 'Trenna','Rajs', 'TRAJS', '650.123.8009' ,'17-
OCT-95' , 'ST_CLERK',3500,50, 124, null);
insert into employees values(142, 'Curtis','Davies', 'CDAVIES',
'650.121.2994' ,'29-JAN-97' , 'ST_CLERK',3100,50 , 124,null );
insert into employees values(143, 'Randall','Matos', 'RMATOS', '650.121.2874' ,'15-
MAR-98' , 'ST_CLERK',2600,50 , 124, null);
insert into employees values(144, 'Peter','Vargas', 'PVARGAS', '650.123.8009' ,'09-
JUL-98' , 'ST_CLERK',2500,50, 124 ,null );
insert into employees values(149, 'Eleni','Zlotkey', 'PVARGAS',
'650.123.8009' ,'09-JUL-98' , 'SA_MAN',10500,80, 100, .2 );
insert into employees values(174, 'Ellen','Abel', 'PVARGAS', '650.123.8009' ,'09-
JUL-98' , 'SA_REP',11000,80, 149, .3 );
insert into employees values(176, 'Jonathon','Taylor', 'PVARGAS',
'650.123.8009' ,'09-JUL-98' , 'SA_REP',8600,80 , 149, .2 );
insert into employees values(178, 'Kimberely','Grant', 'RGRANI',
'011.44.1044.425200' ,'04-MAY-99' , 'SA_REP',7040,80 , 149, .15 );
insert into employees values(200, 'Jennifer','Whalen', 'JWHALEN',
'515.123.4444' ,'17-SEP-87' , 'AD_ASST',4400,10,101,null );
insert into employees values(201, 'Michalen','Hartstein', 'MHARTSTE',
'515.123.5555' ,'17-FEB-96' , 'MK_MAN',13000,20,100,null );
insert into employees values(202, 'Pat','Fay', 'PFAY', '603.123.6666' ,'17-AUG-
97' , 'MK_REP',6000,20,201,null );
insert into employees values(205, 'Shelley' , 'Higgins', 'SHIGGINS', '515.123.8080'
,'07-JUN-94' , 'AC_MGR' ,12000 ,110 ,101 , null);
insert into employees values(206, 'William' , 'Gietz', 'WGIETZ' ,
'515.123.8181' ,'07-JUL-94' , 'AC_ACCOUNT', 8300 , 110 , 205 , null );
create table DEPARTMENTS ( department_id number(4) primary key, department_name
varchar2(20),manager_id number(4), location_id number(10));
insert into departments values(20, 'Marketing' , 201, 1800);
insert into departments values(10, 'Administration' , 200, 1700);
insert into departments values(50, 'Shipping' , 124 ,1500);
insert into departments values(60, 'IT' , 103, 1400);
insert into departments values(80, 'Sales' ,149 ,2500);
insert into departments values(90, 'Executive' ,100,1700);
insert into departments values(110, 'Accounting' , 205,1700);
insert into departments values(190, 'Contracting' ,null ,1700);
create table JOB_GRADES(gra varchar(4) primary key, lowest_sal
number(9),highest_sal number(9));
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);
create table locations ( location_id number(9) primary key, city varchar2(20));
insert into locations values(1400 , 'Southlake');
insert into locations values(1500 , 'South San Francisco');
insert into locations values(1700 , 'Seattle');
insert into locations values(1800 , 'Toronto');
insert into locations values(2500 , 'Oxford');
commit;
You might also like
Sap HCM Payroll User Guide
PDF
100% (3)
Sap HCM Payroll User Guide
126 pages
Core Java - Munishwar Gulati
PDF
No ratings yet
Core Java - Munishwar Gulati
252 pages
Nfpa 70B
PDF
100% (4)
Nfpa 70B
32 pages
Case Study 2 Solution
PDF
83% (6)
Case Study 2 Solution
11 pages
20 SQL Exercises For Practice: Table Structure and Schema
PDF
100% (5)
20 SQL Exercises For Practice: Table Structure and Schema
12 pages
DBMS Lab Manual Final City Midnapore
PDF
No ratings yet
DBMS Lab Manual Final City Midnapore
34 pages
Broadcast and Live Events Field Guide
PDF
100% (2)
Broadcast and Live Events Field Guide
43 pages
Panasonic SA-AK750GCP
PDF
100% (1)
Panasonic SA-AK750GCP
106 pages
Create A Table Called 'EMPLOYEE' With The Following Structure
PDF
No ratings yet
Create A Table Called 'EMPLOYEE' With The Following Structure
9 pages
EC6 2 ReleaseNotes P638 24
PDF
No ratings yet
EC6 2 ReleaseNotes P638 24
3 pages
JAI MAHAKAAL! GOC Kohinoor Drive [Private] - _JAI MAHAKAAL! GOC Kohinoor Drive_[Educative.io] System Design_Grokking the System Design Interview_Course Contents_2.Glossary of System Design Basics_
PDF
No ratings yet
JAI MAHAKAAL! GOC Kohinoor Drive [Private] - _JAI MAHAKAAL! GOC Kohinoor Drive_[Educative.io] System Design_Grokking the System Design Interview_Course Contents_2.Glossary of System Design Basics_
139 pages
QuantNet Online C Course
PDF
No ratings yet
QuantNet Online C Course
9 pages
SQL Database
PDF
No ratings yet
SQL Database
18 pages
SG Acma
PDF
No ratings yet
SG Acma
9 pages
Source Code Dbms
PDF
No ratings yet
Source Code Dbms
14 pages
SQL Questions With Answer
PDF
No ratings yet
SQL Questions With Answer
11 pages
SQL Empl Table
PDF
0% (1)
SQL Empl Table
2 pages
AC51526140 Nimh Battery Pack
PDF
No ratings yet
AC51526140 Nimh Battery Pack
1 page
11 - Conditional Control Structure
PDF
No ratings yet
11 - Conditional Control Structure
8 pages
Chorus Trio Expander User Manual Rev 1.8 en 05.2022
PDF
No ratings yet
Chorus Trio Expander User Manual Rev 1.8 en 05.2022
104 pages
Key and Forigen Key: 1. Create A Table and Specific The Primary
PDF
No ratings yet
Key and Forigen Key: 1. Create A Table and Specific The Primary
5 pages
HMT 3072 SQL PDF
PDF
No ratings yet
HMT 3072 SQL PDF
58 pages
Introduction To HVDC Architecture and Solutions For Control and Protection
PDF
No ratings yet
Introduction To HVDC Architecture and Solutions For Control and Protection
18 pages
SQL Exercises and Solutions in MySQL Practice
PDF
No ratings yet
SQL Exercises and Solutions in MySQL Practice
10 pages
Sebastian LabActivity#4
PDF
No ratings yet
Sebastian LabActivity#4
17 pages
Data Sheet enUS 1890876683
PDF
No ratings yet
Data Sheet enUS 1890876683
47 pages
Extra Worksheets 1st Year
PDF
No ratings yet
Extra Worksheets 1st Year
41 pages
DB2
PDF
No ratings yet
DB2
3 pages
Emp Script Mysql
PDF
No ratings yet
Emp Script Mysql
1 page
TNSNAMES - ORA Is The File Where Configuration Is Needed. Single Row Functions
PDF
No ratings yet
TNSNAMES - ORA Is The File Where Configuration Is Needed. Single Row Functions
13 pages
Base de Donnees Gestionemployes
PDF
No ratings yet
Base de Donnees Gestionemployes
3 pages
SCHEMA1
PDF
No ratings yet
SCHEMA1
19 pages
Employees: First - Name First - Name First - Name
PDF
No ratings yet
Employees: First - Name First - Name First - Name
3 pages
P New
PDF
No ratings yet
P New
14 pages
Practise
PDF
No ratings yet
Practise
21 pages
Simple and Complex Queries
PDF
No ratings yet
Simple and Complex Queries
31 pages
DataBase Assignment
PDF
No ratings yet
DataBase Assignment
14 pages
SQL Exercises and Solutions in MySQL
PDF
No ratings yet
SQL Exercises and Solutions in MySQL
12 pages
DBMS Practicals
PDF
No ratings yet
DBMS Practicals
17 pages
PRACTICAv
PDF
No ratings yet
PRACTICAv
24 pages
Company - Data Table
PDF
No ratings yet
Company - Data Table
6 pages
Budget of Minority
PDF
No ratings yet
Budget of Minority
18 pages
Insert Emp
PDF
No ratings yet
Insert Emp
1 page
Capstone Case Study
PDF
No ratings yet
Capstone Case Study
4 pages
Module 3 InterfacePakagesException
PDF
No ratings yet
Module 3 InterfacePakagesException
29 pages
RDBMS1
PDF
No ratings yet
RDBMS1
7 pages
Source Tables
PDF
No ratings yet
Source Tables
10 pages
The 24/7 Innovation: The 7Rs of Process Redesign
PDF
No ratings yet
The 24/7 Innovation: The 7Rs of Process Redesign
3 pages
Manual Usuario Cone P (INGLÉS)
PDF
No ratings yet
Manual Usuario Cone P (INGLÉS)
40 pages
SQL 1
PDF
No ratings yet
SQL 1
12 pages
Mysql Practice
PDF
No ratings yet
Mysql Practice
10 pages
Employee-Payment Database: A) Create The Tables With The Appropriate Integrity Constraints
PDF
No ratings yet
Employee-Payment Database: A) Create The Tables With The Appropriate Integrity Constraints
8 pages
Dbms 3
PDF
No ratings yet
Dbms 3
6 pages
Emp Assign
PDF
No ratings yet
Emp Assign
1 page
Sample Tables
PDF
No ratings yet
Sample Tables
4 pages
Database Assignment 2
PDF
No ratings yet
Database Assignment 2
4 pages
IP - MySQL Practical File
PDF
No ratings yet
IP - MySQL Practical File
9 pages
Anthropometry As Ergonomic Consideration For Hospital
PDF
No ratings yet
Anthropometry As Ergonomic Consideration For Hospital
8 pages
The Future of Cybersecurity - Emerging Trends and Challenges
PDF
No ratings yet
The Future of Cybersecurity - Emerging Trends and Challenges
5 pages
HumanFactors BBS
PDF
No ratings yet
HumanFactors BBS
26 pages
Parsing Dependency
PDF
No ratings yet
Parsing Dependency
26 pages
Name: Siva 19BCE1582 Ex. 2 DML
PDF
No ratings yet
Name: Siva 19BCE1582 Ex. 2 DML
6 pages
Ex 2.2
PDF
No ratings yet
Ex 2.2
4 pages
Employee Table: Practical QUERIES (1-10)
PDF
No ratings yet
Employee Table: Practical QUERIES (1-10)
7 pages
LiveSQL 1
PDF
No ratings yet
LiveSQL 1
2 pages
Assignment-1 Dbms
PDF
No ratings yet
Assignment-1 Dbms
3 pages
CREATE TABLE Departments and Employees
PDF
No ratings yet
CREATE TABLE Departments and Employees
3 pages
DROP DATABASE IF EXISTS Company
PDF
No ratings yet
DROP DATABASE IF EXISTS Company
2 pages
SQL A
PDF
No ratings yet
SQL A
5 pages
SQL Practicles File
PDF
No ratings yet
SQL Practicles File
2 pages
SQL New Assignment 2
PDF
No ratings yet
SQL New Assignment 2
5 pages
Trawnih Et Al 2023 Determining Perceptions of Banking Customers Regarding Fingerprint Atms
PDF
No ratings yet
Trawnih Et Al 2023 Determining Perceptions of Banking Customers Regarding Fingerprint Atms
19 pages
Sampledatabase (1) - 6290872 - 2024 - 10 - 01 - 19 - 31
PDF
No ratings yet
Sampledatabase (1) - 6290872 - 2024 - 10 - 01 - 19 - 31
2 pages
Assignment-2 DBMS
PDF
No ratings yet
Assignment-2 DBMS
3 pages
18apr2025 Nasim
PDF
No ratings yet
18apr2025 Nasim
4 pages
INF313 - Class Exercise
PDF
No ratings yet
INF313 - Class Exercise
4 pages
3rd Company
PDF
No ratings yet
3rd Company
2 pages
Employee Department
PDF
No ratings yet
Employee Department
2 pages
Create Employee Table
PDF
No ratings yet
Create Employee Table
1 page
Faith in Mind PDF
PDF
No ratings yet
Faith in Mind PDF
2 pages
SQL Excersise
PDF
No ratings yet
SQL Excersise
2 pages
CrEmpDep New
PDF
No ratings yet
CrEmpDep New
1 page
Aaron Willette: Contact - (734) 680-4127 Github
PDF
No ratings yet
Aaron Willette: Contact - (734) 680-4127 Github
2 pages
Mod Menu Crash 2024 02 27-12 00 09
PDF
No ratings yet
Mod Menu Crash 2024 02 27-12 00 09
3 pages
Properties of GCD and LCM
PDF
No ratings yet
Properties of GCD and LCM
1 page
Sub Net Mask
PDF
No ratings yet
Sub Net Mask
2 pages
No Ph.D. Game Design With Three.js
From Everand
No Ph.D. Game Design With Three.js
Nikiforos Kontopoulos
No ratings yet