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 Empl Table
PDF
0% (1)
SQL Empl Table
2 pages
20 SQL Exercises For Practice: Table Structure and Schema
PDF
100% (5)
20 SQL Exercises For Practice: Table Structure and Schema
12 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
Case Study 2 Solution
PDF
83% (6)
Case Study 2 Solution
11 pages
Company - Data Table
PDF
No ratings yet
Company - Data Table
6 pages
SQL Exercises and Solutions in MySQL Practice
PDF
No ratings yet
SQL Exercises and Solutions in MySQL Practice
10 pages
Mysql Practice
PDF
No ratings yet
Mysql Practice
10 pages
Employee Table: Practical QUERIES (1-10)
PDF
No ratings yet
Employee Table: Practical QUERIES (1-10)
7 pages
DB2
PDF
No ratings yet
DB2
3 pages
Sebastian LabActivity#4
PDF
No ratings yet
Sebastian LabActivity#4
17 pages
DBMS Lab Manual Final City Midnapore
PDF
No ratings yet
DBMS Lab Manual Final City Midnapore
34 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
SCHEMA1
PDF
No ratings yet
SCHEMA1
19 pages
SQL 1
PDF
No ratings yet
SQL 1
12 pages
1
PDF
No ratings yet
1
4 pages
HMT 3072 SQL PDF
PDF
No ratings yet
HMT 3072 SQL PDF
58 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
P New
PDF
No ratings yet
P New
14 pages
Insert Emp
PDF
No ratings yet
Insert Emp
1 page
Practise
PDF
No ratings yet
Practise
21 pages
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
Source Tables
PDF
No ratings yet
Source Tables
10 pages
Dbms 3
PDF
No ratings yet
Dbms 3
6 pages
PRACTICAv
PDF
No ratings yet
PRACTICAv
24 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
INF313 - Class Exercise
PDF
No ratings yet
INF313 - Class Exercise
4 pages
RDBMS1
PDF
No ratings yet
RDBMS1
7 pages
Source Code Dbms
PDF
No ratings yet
Source Code Dbms
14 pages
Name: Siva 19BCE1582 Ex. 2 DML
PDF
No ratings yet
Name: Siva 19BCE1582 Ex. 2 DML
6 pages
SQL Database
PDF
No ratings yet
SQL Database
18 pages
Dbms Practicals 2010
PDF
No ratings yet
Dbms Practicals 2010
26 pages
LiveSQL 1
PDF
No ratings yet
LiveSQL 1
2 pages
SQL New Assignment 2
PDF
No ratings yet
SQL New Assignment 2
5 pages
Emp Assign
PDF
No ratings yet
Emp Assign
1 page
IP - MySQL Practical File
PDF
No ratings yet
IP - MySQL Practical File
9 pages
3rd Company
PDF
No ratings yet
3rd Company
2 pages
Sampledatabase (1) - 6290872 - 2024 - 10 - 01 - 19 - 31
PDF
No ratings yet
Sampledatabase (1) - 6290872 - 2024 - 10 - 01 - 19 - 31
2 pages
sample_tables
PDF
No ratings yet
sample_tables
4 pages
CREATE TABLE departments and employees
PDF
No ratings yet
CREATE TABLE departments and employees
3 pages
ASSIGNMENT-2 DBMS
PDF
No ratings yet
ASSIGNMENT-2 DBMS
3 pages
Employee Department
PDF
No ratings yet
Employee Department
2 pages
assignment-1 dbms
PDF
No ratings yet
assignment-1 dbms
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
Emp Script Mysql
PDF
No ratings yet
Emp Script Mysql
1 page
Database Assignment 2
PDF
No ratings yet
Database Assignment 2
4 pages
Create Employee Table
PDF
No ratings yet
Create Employee Table
1 page
SQL Questions With Answer
PDF
No ratings yet
SQL Questions With Answer
11 pages
Ex 2.2
PDF
No ratings yet
Ex 2.2
4 pages
Guide Beast 2.07
PDF
0% (1)
Guide Beast 2.07
9 pages
DEIF AGC-4 Parameter List 4189340688 UK - 2014.02.10
PDF
100% (3)
DEIF AGC-4 Parameter List 4189340688 UK - 2014.02.10
216 pages
SQL Practicles File
PDF
No ratings yet
SQL Practicles File
2 pages
Base de Donnees Gestionemployes
PDF
No ratings yet
Base de Donnees Gestionemployes
3 pages
Interpreting Seam Data
PDF
No ratings yet
Interpreting Seam Data
11 pages
Tanaji Jadhav: Project Engineer
PDF
No ratings yet
Tanaji Jadhav: Project Engineer
2 pages
SQL Excersise
PDF
No ratings yet
SQL Excersise
2 pages
SCHALLER - Oil Mist Detector
PDF
No ratings yet
SCHALLER - Oil Mist Detector
34 pages
Geotech Module 4 PDF
PDF
No ratings yet
Geotech Module 4 PDF
64 pages
Inventory of ICT Equipments
PDF
100% (2)
Inventory of ICT Equipments
12 pages
Dominique Chomienne & Michel Eftimakis: Newlogic Newlogic Newlogic Newlogic
PDF
No ratings yet
Dominique Chomienne & Michel Eftimakis: Newlogic Newlogic Newlogic Newlogic
62 pages
ACUSON Sequoia 512 Ultrasound System Transducers
PDF
No ratings yet
ACUSON Sequoia 512 Ultrasound System Transducers
114 pages
(Part 4) RTPC 102 Fsa
PDF
No ratings yet
(Part 4) RTPC 102 Fsa
82 pages
Employees: First - Name First - Name First - Name
PDF
No ratings yet
Employees: First - Name First - Name First - Name
3 pages
Electrolux Dishwashers 60cm Service Manual_e7afca
PDF
No ratings yet
Electrolux Dishwashers 60cm Service Manual_e7afca
47 pages
Magnetic Effect of Current PDF
PDF
100% (1)
Magnetic Effect of Current PDF
45 pages
Energy Conversion and Management: V. Velmurugan, M. Gopalakrishnan, R. Raghu, K. Srithar
PDF
No ratings yet
Energy Conversion and Management: V. Velmurugan, M. Gopalakrishnan, R. Raghu, K. Srithar
7 pages
wind turbine blade design
PDF
No ratings yet
wind turbine blade design
27 pages
Eiffel Tower
PDF
No ratings yet
Eiffel Tower
10 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
Excluder 2
PDF
No ratings yet
Excluder 2
10 pages
set 2 Grade IV EVS Annual Exam
PDF
No ratings yet
set 2 Grade IV EVS Annual Exam
12 pages
Karnataka Lifts, Escalators and Passenger Conveyors Act, 2012
PDF
No ratings yet
Karnataka Lifts, Escalators and Passenger Conveyors Act, 2012
12 pages
Drafts - Drafts - Concrete - 24 Anchors - North - c20-25
PDF
No ratings yet
Drafts - Drafts - Concrete - 24 Anchors - North - c20-25
21 pages
Geotechnical Investigation Report
PDF
No ratings yet
Geotechnical Investigation Report
3 pages
Acrow Northside Bridge
PDF
No ratings yet
Acrow Northside Bridge
12 pages
Overview: Concert Hall: Justification of Design
PDF
No ratings yet
Overview: Concert Hall: Justification of Design
4 pages
Lifting Plan Sample
PDF
No ratings yet
Lifting Plan Sample
5 pages
Football Lighting: A Guide To Effective Sports Lighting For Football
PDF
No ratings yet
Football Lighting: A Guide To Effective Sports Lighting For Football
26 pages
Palatinol DPHP TDS
PDF
No ratings yet
Palatinol DPHP TDS
5 pages
NEC and ATEX
PDF
No ratings yet
NEC and ATEX
8 pages
Yuasa Swl1100
PDF
No ratings yet
Yuasa Swl1100
2 pages
CPL List - 22
PDF
No ratings yet
CPL List - 22
4 pages
Sailent Features of Project
PDF
No ratings yet
Sailent Features of Project
2 pages
WEIDMANN Tapes
PDF
No ratings yet
WEIDMANN Tapes
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