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 now
Download
Save SQL_SCRIPT For Later
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
Download now
Download
Save SQL_SCRIPT For Later
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
SQL Database
PDF
No ratings yet
SQL Database
18 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
SCHEMA1
PDF
No ratings yet
SCHEMA1
19 pages
Insert Emp
PDF
No ratings yet
Insert Emp
1 page
DROP DATABASE IF EXISTS company
PDF
No ratings yet
DROP DATABASE IF EXISTS company
2 pages
sample_tables
PDF
No ratings yet
sample_tables
4 pages
Base de Donnees Gestionemployes
PDF
No ratings yet
Base de Donnees Gestionemployes
3 pages
SQL Exercises and Solutions in MySQL
PDF
No ratings yet
SQL Exercises and Solutions in MySQL
12 pages
SQL Exercises and Solutions in MySQL Practice
PDF
No ratings yet
SQL Exercises and Solutions in MySQL Practice
10 pages
LiveSQL 1
PDF
No ratings yet
LiveSQL 1
2 pages
Mysql Practice
PDF
No ratings yet
Mysql Practice
10 pages
DB2
PDF
No ratings yet
DB2
3 pages
SQL Excersise
PDF
No ratings yet
SQL Excersise
2 pages
CREATE TABLE departments and employees
PDF
No ratings yet
CREATE TABLE departments and employees
3 pages
Dbms 3
PDF
No ratings yet
Dbms 3
6 pages
assignment-1 dbms
PDF
No ratings yet
assignment-1 dbms
3 pages
SQL Questions With Answer
PDF
No ratings yet
SQL Questions With Answer
11 pages
Employee Department
PDF
No ratings yet
Employee Department
2 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
1
PDF
No ratings yet
1
4 pages
Source Code Dbms
PDF
No ratings yet
Source Code Dbms
14 pages
Simple and Complex Queries
PDF
No ratings yet
Simple and Complex Queries
31 pages
RDBMS1
PDF
No ratings yet
RDBMS1
7 pages
SQL A
PDF
No ratings yet
SQL A
5 pages
Company - Data Table
PDF
No ratings yet
Company - Data Table
6 pages
SQL Empl Table
PDF
0% (1)
SQL Empl Table
2 pages
SQL 1
PDF
No ratings yet
SQL 1
12 pages
ASSIGNMENT-2 DBMS
PDF
No ratings yet
ASSIGNMENT-2 DBMS
3 pages
HMT 3072 SQL PDF
PDF
No ratings yet
HMT 3072 SQL PDF
58 pages
Create Employee Table
PDF
No ratings yet
Create Employee Table
1 page
Sebastian LabActivity#4
PDF
No ratings yet
Sebastian LabActivity#4
17 pages
INF313 - Class Exercise
PDF
No ratings yet
INF313 - Class Exercise
4 pages
Sampledatabase (1) - 6290872 - 2024 - 10 - 01 - 19 - 31
PDF
No ratings yet
Sampledatabase (1) - 6290872 - 2024 - 10 - 01 - 19 - 31
2 pages
DBMS_Practicals
PDF
No ratings yet
DBMS_Practicals
17 pages
Employees: First - Name First - Name First - Name
PDF
No ratings yet
Employees: First - Name First - Name First - Name
3 pages
Emp Assign
PDF
No ratings yet
Emp Assign
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
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
Database Assignment 2
PDF
No ratings yet
Database Assignment 2
4 pages
SQL New Assignment 2
PDF
No ratings yet
SQL New Assignment 2
5 pages
P New
PDF
No ratings yet
P New
14 pages
Practise
PDF
No ratings yet
Practise
21 pages
Ex 2.2
PDF
No ratings yet
Ex 2.2
4 pages
Name: Siva 19BCE1582 Ex. 2 DML
PDF
No ratings yet
Name: Siva 19BCE1582 Ex. 2 DML
6 pages
Emp Script Mysql
PDF
No ratings yet
Emp Script Mysql
1 page
3rd Company
PDF
No ratings yet
3rd Company
2 pages
PRACTICAv
PDF
No ratings yet
PRACTICAv
24 pages
IP - MySQL Practical File
PDF
No ratings yet
IP - MySQL Practical File
9 pages
DBMS Lab Manual Final City Midnapore
PDF
No ratings yet
DBMS Lab Manual Final City Midnapore
34 pages
Employee Table: Practical QUERIES (1-10)
PDF
No ratings yet
Employee Table: Practical QUERIES (1-10)
7 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
Source Tables
PDF
No ratings yet
Source Tables
10 pages
SQL Practicles File
PDF
No ratings yet
SQL Practicles File
2 pages
DataBase Assignment
PDF
No ratings yet
DataBase Assignment
14 pages
Dbms Practicals 2010
PDF
No ratings yet
Dbms Practicals 2010
26 pages
No Ph.D. Game Design With Three.js
From Everand
No Ph.D. Game Design With Three.js
Nikiforos Kontopoulos
No ratings yet
3 CrankNicolson
PDF
No ratings yet
3 CrankNicolson
75 pages
Documenting Dance A Practical Guide
PDF
No ratings yet
Documenting Dance A Practical Guide
65 pages
Hindustan Institute of Technology & Science
PDF
No ratings yet
Hindustan Institute of Technology & Science
12 pages
Digital Twin For Battery Health Monitoring
PDF
No ratings yet
Digital Twin For Battery Health Monitoring
2 pages
500-490 Dumps With Real 500-490 PDF Questions Answers 2018
PDF
No ratings yet
500-490 Dumps With Real 500-490 PDF Questions Answers 2018
4 pages
Icmap Mock Exam Nov 2018 : Question No: 1
PDF
No ratings yet
Icmap Mock Exam Nov 2018 : Question No: 1
46 pages
Reliability Analysis For Repairable v1.9
PDF
100% (1)
Reliability Analysis For Repairable v1.9
266 pages
Summative Test 1 in General Mathematics
PDF
No ratings yet
Summative Test 1 in General Mathematics
2 pages
CCC Games For Vocabulary Practice
PDF
89% (18)
CCC Games For Vocabulary Practice
121 pages
Adnan Salman
PDF
No ratings yet
Adnan Salman
15 pages
Instruction Manual: Turbo Instrument Controller (TIC)
PDF
No ratings yet
Instruction Manual: Turbo Instrument Controller (TIC)
64 pages
A Fingerprint Sensor Based On The Feedback Capacitive Sensing Scheme
PDF
No ratings yet
A Fingerprint Sensor Based On The Feedback Capacitive Sensing Scheme
10 pages
GPU Pro 5 PDF
PDF
100% (1)
GPU Pro 5 PDF
524 pages
IBM Power10 Scale-Out L2 Quiz - Attempt Review
PDF
No ratings yet
IBM Power10 Scale-Out L2 Quiz - Attempt Review
13 pages
Computation at The Edge of Chaos Langton PDF
PDF
No ratings yet
Computation at The Edge of Chaos Langton PDF
26 pages
Thermo Scientific Cryogenic Storage Brochure
PDF
No ratings yet
Thermo Scientific Cryogenic Storage Brochure
36 pages
Sahana
PDF
No ratings yet
Sahana
6 pages
231 Quiz 2
PDF
No ratings yet
231 Quiz 2
3 pages
BPML 2002
PDF
No ratings yet
BPML 2002
98 pages
DPR GoaDroneHub
PDF
No ratings yet
DPR GoaDroneHub
10 pages
BMT05109 - Introduction To Computer Applications Module Guideline - Wankyo M Joshua
PDF
No ratings yet
BMT05109 - Introduction To Computer Applications Module Guideline - Wankyo M Joshua
27 pages
FYP Presentation
PDF
No ratings yet
FYP Presentation
14 pages
RFC 2544 Ethernet Test Report
PDF
No ratings yet
RFC 2544 Ethernet Test Report
9 pages
17EL73 Assignment 1 (PSA)
PDF
No ratings yet
17EL73 Assignment 1 (PSA)
2 pages
Huawei EUTRAN COunters and MO
PDF
No ratings yet
Huawei EUTRAN COunters and MO
18 pages
QuantitativeMethods238 PDF
PDF
No ratings yet
QuantitativeMethods238 PDF
145 pages
Monitoreo de Tuberías de Agua y Detección de Fugas Usando Sensores de Humedad Del Suelo Solución Basada en IoT
PDF
No ratings yet
Monitoreo de Tuberías de Agua y Detección de Fugas Usando Sensores de Humedad Del Suelo Solución Basada en IoT
4 pages
Dbb-06 Technical Manual 879en-R1
PDF
No ratings yet
Dbb-06 Technical Manual 879en-R1
154 pages
PhotoVoltaic General Catalog PDF
PDF
No ratings yet
PhotoVoltaic General Catalog PDF
20 pages
Handbook of Surveillance Technologies History Applications 3rd Edition J.K. Petersen - The ebook in PDF and DOCX formats is ready for download
PDF
No ratings yet
Handbook of Surveillance Technologies History Applications 3rd Edition J.K. Petersen - The ebook in PDF and DOCX formats is ready for download
57 pages