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)
16 views
SQL Script
Uploaded by
FARINA KHAN
AI-enhanced title
Copyright
© © All Rights Reserved
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)
16 views
SQL Script
Uploaded by
FARINA KHAN
AI-enhanced title
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
Download now
Download
Save SQL_SCRIPT For Later
Carousel Previous
Carousel Next
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
TACACS+ - Linux TACACS+ Authentication Using Active Directory
PDF
No ratings yet
TACACS+ - Linux TACACS+ Authentication Using Active Directory
21 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
Base de Donnees Gestionemployes
PDF
No ratings yet
Base de Donnees Gestionemployes
3 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
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
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
DBMS ASSESMENT
PDF
No ratings yet
DBMS ASSESMENT
4 pages
SQL Case Study 2
PDF
No ratings yet
SQL Case Study 2
17 pages
Tabele Do Ćwiczeń
PDF
No ratings yet
Tabele Do Ćwiczeń
4 pages
SQL 3ri
PDF
No ratings yet
SQL 3ri
32 pages
SQL
PDF
No ratings yet
SQL
53 pages
No Ph.D. Game Design With Three.js
From Everand
No Ph.D. Game Design With Three.js
Nikiforos Kontopoulos
No ratings yet
SDN Checklist
PDF
No ratings yet
SDN Checklist
4 pages
Depika Wcs
PDF
No ratings yet
Depika Wcs
9 pages
PYTHON
PDF
No ratings yet
PYTHON
5 pages
ESP32-ESP8266 Web Server HTTP Authentication (Username and Password Protected)
PDF
No ratings yet
ESP32-ESP8266 Web Server HTTP Authentication (Username and Password Protected)
4 pages
MicroStation - LiDAR - Classifying Points
PDF
No ratings yet
MicroStation - LiDAR - Classifying Points
7 pages
Epcoss Usermanual MODIFIED
PDF
No ratings yet
Epcoss Usermanual MODIFIED
47 pages
Elctronic Spredsheet 10 Notes
PDF
No ratings yet
Elctronic Spredsheet 10 Notes
7 pages
ISU - BBP - DM - 17 Meter Installation
PDF
No ratings yet
ISU - BBP - DM - 17 Meter Installation
5 pages
Abstraction in Java: Interfaces Abstract Classes
PDF
No ratings yet
Abstraction in Java: Interfaces Abstract Classes
11 pages
Cnmatrix User Guide 4.5
PDF
No ratings yet
Cnmatrix User Guide 4.5
320 pages
The El Dorado Star Is The Only Newspaper in El
PDF
No ratings yet
The El Dorado Star Is The Only Newspaper in El
1 page
MYSQL
PDF
No ratings yet
MYSQL
44 pages
4.3.1 Bus Arbitration
PDF
100% (2)
4.3.1 Bus Arbitration
9 pages
Legend of Grimrock - Console Commands 1
PDF
100% (1)
Legend of Grimrock - Console Commands 1
3 pages
Adobe_2024_Manual_FAQ_1
PDF
No ratings yet
Adobe_2024_Manual_FAQ_1
2 pages
Contoh Review Text
PDF
No ratings yet
Contoh Review Text
7 pages
Final Exam Solution
PDF
No ratings yet
Final Exam Solution
10 pages
Carry Look Ahead Adder
PDF
No ratings yet
Carry Look Ahead Adder
2 pages
IIT Dhanbad Resume OnCampus
PDF
No ratings yet
IIT Dhanbad Resume OnCampus
2 pages
CCNA 200 301 Course Outline
PDF
No ratings yet
CCNA 200 301 Course Outline
3 pages
How Does Strategyquant Work
PDF
No ratings yet
How Does Strategyquant Work
6 pages
Introduction To Information and Communication Technology
PDF
No ratings yet
Introduction To Information and Communication Technology
8 pages
Get Hands On Hacking 1st Edition Edition Matthew Hickey PDF Ebook With Full Chapters Now
PDF
100% (3)
Get Hands On Hacking 1st Edition Edition Matthew Hickey PDF Ebook With Full Chapters Now
57 pages
Angular File Creating Steps
PDF
No ratings yet
Angular File Creating Steps
4 pages
HPE2-T36 by HP Actual Free Exam Questions and Answers5
PDF
No ratings yet
HPE2-T36 by HP Actual Free Exam Questions and Answers5
5 pages
Libra Graphics Technical White Paper
PDF
No ratings yet
Libra Graphics Technical White Paper
9 pages
Joystick Steering - II
PDF
No ratings yet
Joystick Steering - II
2 pages
1a - CSC584 - Overview of OOP - Part 1
PDF
No ratings yet
1a - CSC584 - Overview of OOP - Part 1
59 pages
Car Rental System Final
PDF
No ratings yet
Car Rental System Final
68 pages