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)
9 views
Create DB HR
Uploaded by
abhishekshaw1507
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 create-db-hr For Later
Download
Save
Save create-db-hr For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
9 views
Create DB HR
Uploaded by
abhishekshaw1507
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 create-db-hr For Later
Carousel Previous
Carousel Next
Save
Save create-db-hr 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
DROP DATABASE IF EXISTS `sql_hr`;
CREATE DATABASE `sql_hr`;
USE `sql_hr`;
CREATE TABLE `offices` (
`office_id` int(11) NOT NULL,
`address` varchar(50) NOT NULL,
`city` varchar(50) NOT NULL,
`state` varchar(50) NOT NULL,
PRIMARY KEY (`office_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
INSERT INTO `offices` VALUES (1,'03 Reinke Trail','Cincinnati','OH');
INSERT INTO `offices` VALUES (2,'5507 Becker Terrace','New York City','NY');
INSERT INTO `offices` VALUES (3,'54 Northland Court','Richmond','VA');
INSERT INTO `offices` VALUES (4,'08 South Crossing','Cincinnati','OH');
INSERT INTO `offices` VALUES (5,'553 Maple Drive','Minneapolis','MN');
INSERT INTO `offices` VALUES (6,'23 North Plaza','Aurora','CO');
INSERT INTO `offices` VALUES (7,'9658 Wayridge Court','Boise','ID');
INSERT INTO `offices` VALUES (8,'9 Grayhawk Trail','New York City','NY');
INSERT INTO `offices` VALUES (9,'16862 Westend Hill','Knoxville','TN');
INSERT INTO `offices` VALUES (10,'4 Bluestem Parkway','Savannah','GA');
CREATE TABLE `employees` (
`employee_id` int(11) NOT NULL,
`first_name` varchar(50) NOT NULL,
`last_name` varchar(50) NOT NULL,
`job_title` varchar(50) NOT NULL,
`salary` int(11) NOT NULL,
`reports_to` int(11) DEFAULT NULL,
`office_id` int(11) NOT NULL,
PRIMARY KEY (`employee_id`),
KEY `fk_employees_offices_idx` (`office_id`),
KEY `fk_employees_employees_idx` (`reports_to`),
CONSTRAINT `fk_employees_managers` FOREIGN KEY (`reports_to`) REFERENCES
`employees` (`employee_id`),
CONSTRAINT `fk_employees_offices` FOREIGN KEY (`office_id`) REFERENCES `offices`
(`office_id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
INSERT INTO `employees` VALUES (37270,'Yovonnda','Magrannell','Executive
Secretary',63996,NULL,10);
INSERT INTO `employees` VALUES (33391,'D\'arcy','Nortunen','Account
Executive',62871,37270,1);
INSERT INTO `employees` VALUES (37851,'Sayer','Matterson','Statistician
III',98926,37270,1);
INSERT INTO `employees` VALUES (40448,'Mindy','Crissil','Staff
Scientist',94860,37270,1);
INSERT INTO `employees` VALUES (56274,'Keriann','Alloisi','VP
Marketing',110150,37270,1);
INSERT INTO `employees` VALUES (63196,'Alaster','Scutchin','Assistant
Professor',32179,37270,2);
INSERT INTO `employees` VALUES (67009,'North','de Clerc','VP Product
Management',114257,37270,2);
INSERT INTO `employees` VALUES (67370,'Elladine','Rising','Social
Worker',96767,37270,2);
INSERT INTO `employees` VALUES (68249,'Nisse','Voysey','Financial
Advisor',52832,37270,2);
INSERT INTO `employees` VALUES (72540,'Guthrey','Iacopetti','Office Assistant
I',117690,37270,3);
INSERT INTO `employees` VALUES (72913,'Kass','Hefferan','Computer Systems Analyst
IV',96401,37270,3);
INSERT INTO `employees` VALUES (75900,'Virge','Goodrum','Information Systems
Manager',54578,37270,3);
INSERT INTO `employees` VALUES (76196,'Mirilla','Janowski','Cost
Accountant',119241,37270,3);
INSERT INTO `employees` VALUES (80529,'Lynde','Aronson','Junior
Executive',77182,37270,4);
INSERT INTO `employees` VALUES (80679,'Mildrid','Sokale','Geologist
II',67987,37270,4);
INSERT INTO `employees` VALUES (84791,'Hazel','Tarbert','General
Manager',93760,37270,4);
INSERT INTO `employees` VALUES
(95213,'Cole','Kesterton','Pharmacist',86119,37270,4);
INSERT INTO `employees` VALUES (96513,'Theresa','Binney','Food
Chemist',47354,37270,5);
INSERT INTO `employees` VALUES (98374,'Estrellita','Daleman','Staff Accountant
IV',70187,37270,5);
INSERT INTO `employees` VALUES (115357,'Ivy','Fearey','Structural
Engineer',92710,37270,5);
You might also like
20 SQL Exercises For Practice: Table Structure and Schema
PDF
100% (5)
20 SQL Exercises For Practice: Table Structure and Schema
12 pages
How To Understand SAP ST04 Information and Use It For Performance Analysis
PDF
No ratings yet
How To Understand SAP ST04 Information and Use It For Performance Analysis
19 pages
MySQL Workbench Forward Engineering SQL Code of Employee Management
PDF
No ratings yet
MySQL Workbench Forward Engineering SQL Code of Employee Management
4 pages
Sanjana Dbms Work
PDF
No ratings yet
Sanjana Dbms Work
38 pages
Scripts GovtOffice
PDF
No ratings yet
Scripts GovtOffice
2 pages
Lab 2
PDF
No ratings yet
Lab 2
3 pages
Scripts Company
PDF
No ratings yet
Scripts Company
3 pages
testdbms(f)
PDF
No ratings yet
testdbms(f)
5 pages
Dbms Lab Assignment-04:: Karthikeyan M: 20BCE0145
PDF
No ratings yet
Dbms Lab Assignment-04:: Karthikeyan M: 20BCE0145
17 pages
7349 Assignment2
PDF
No ratings yet
7349 Assignment2
3 pages
Primary Key
PDF
No ratings yet
Primary Key
34 pages
Tabele Do Ćwiczeń
PDF
No ratings yet
Tabele Do Ćwiczeń
4 pages
Employee SQL
PDF
No ratings yet
Employee SQL
4 pages
Mysql Practice
PDF
No ratings yet
Mysql Practice
10 pages
DBMS Unit 3
PDF
No ratings yet
DBMS Unit 3
18 pages
21bce0400 Ass1
PDF
No ratings yet
21bce0400 Ass1
26 pages
Name: Vinayak Nagar Reg - No.: 21MCA0015 Subject: Database Technology Topic: Assignment-1
PDF
No ratings yet
Name: Vinayak Nagar Reg - No.: 21MCA0015 Subject: Database Technology Topic: Assignment-1
77 pages
DATABASE SQL PROJET
PDF
No ratings yet
DATABASE SQL PROJET
20 pages
Simple and Complex Queries
PDF
No ratings yet
Simple and Complex Queries
31 pages
Syntax Tugas Tabk
PDF
No ratings yet
Syntax Tugas Tabk
12 pages
LAB Set Questions Rdbms
PDF
No ratings yet
LAB Set Questions Rdbms
18 pages
SQL Assignments
PDF
No ratings yet
SQL Assignments
25 pages
Creating Company Database Schema and Populating With Data: and Reasoning Behind Constraints
PDF
No ratings yet
Creating Company Database Schema and Populating With Data: and Reasoning Behind Constraints
6 pages
DBMS Record Lab Manual
PDF
100% (1)
DBMS Record Lab Manual
23 pages
Lab 8 DB
PDF
No ratings yet
Lab 8 DB
6 pages
Its Module Exam
PDF
No ratings yet
Its Module Exam
6 pages
Harsh
PDF
No ratings yet
Harsh
21 pages
DBMS 8446 PRAC Q4
PDF
No ratings yet
DBMS 8446 PRAC Q4
16 pages
Dbms 5th Program
PDF
No ratings yet
Dbms 5th Program
9 pages
Dbms 3
PDF
No ratings yet
Dbms 3
9 pages
mysql2 (1)
PDF
No ratings yet
mysql2 (1)
2 pages
Database Assignment 2
PDF
No ratings yet
Database Assignment 2
4 pages
DMSS prac(1)
PDF
No ratings yet
DMSS prac(1)
24 pages
DBML 3
PDF
No ratings yet
DBML 3
6 pages
DBMS & Gui Lab Manual
PDF
No ratings yet
DBMS & Gui Lab Manual
15 pages
Basic Practice
PDF
No ratings yet
Basic Practice
4 pages
employee-management-system
PDF
No ratings yet
employee-management-system
3 pages
Constraints: Create KEY Name NOT Default
PDF
No ratings yet
Constraints: Create KEY Name NOT Default
17 pages
Dbms Raw File
PDF
No ratings yet
Dbms Raw File
19 pages
tables for practice
PDF
No ratings yet
tables for practice
5 pages
Da 20bce0647
PDF
No ratings yet
Da 20bce0647
13 pages
3rd Company
PDF
No ratings yet
3rd Company
2 pages
Dbms_lab1
PDF
No ratings yet
Dbms_lab1
14 pages
Company Database Lab Work
PDF
No ratings yet
Company Database Lab Work
21 pages
RDBMS1
PDF
No ratings yet
RDBMS1
7 pages
DBMS Lab Mannual
PDF
No ratings yet
DBMS Lab Mannual
13 pages
tables.practice
PDF
No ratings yet
tables.practice
9 pages
Dbms
PDF
No ratings yet
Dbms
35 pages
Dbms Worksheet: Name: - Praduman Kumar Section: - 20ITB5 UID: - 20BCS9446
PDF
No ratings yet
Dbms Worksheet: Name: - Praduman Kumar Section: - 20ITB5 UID: - 20BCS9446
13 pages
DBMS Practical
PDF
No ratings yet
DBMS Practical
39 pages
Asw
PDF
No ratings yet
Asw
27 pages
MySQL
PDF
No ratings yet
MySQL
16 pages
Assignment 2 (22BCE8809)
PDF
No ratings yet
Assignment 2 (22BCE8809)
12 pages
Company Database
PDF
No ratings yet
Company Database
3 pages
SCHEMA1
PDF
No ratings yet
SCHEMA1
19 pages
Create Employee Table
PDF
No ratings yet
Create Employee Table
1 page
SQLL
PDF
No ratings yet
SQLL
2 pages
Assignment DWH
PDF
No ratings yet
Assignment DWH
11 pages
EXPERIMENT NO4
PDF
No ratings yet
EXPERIMENT NO4
5 pages
Employees SQL
PDF
No ratings yet
Employees SQL
3 pages
DB2 11.1 for LUW: SQL Basic Training for Application Developers
From Everand
DB2 11.1 for LUW: SQL Basic Training for Application Developers
Robert Wingate
No ratings yet
Recovered DataStage Tip
PDF
100% (1)
Recovered DataStage Tip
115 pages
Parallel Database Systems and Their Architecture
PDF
No ratings yet
Parallel Database Systems and Their Architecture
17 pages
Ankit CS Project
PDF
No ratings yet
Ankit CS Project
32 pages
VACANCY NOTICE_ SVN-KBL-2024-95 Open to Internal and External Candidates
PDF
No ratings yet
VACANCY NOTICE_ SVN-KBL-2024-95 Open to Internal and External Candidates
8 pages
Web Based Application Using PHP (22619) : Mrs Priya Ramesh Rangdal (Zade)
PDF
100% (1)
Web Based Application Using PHP (22619) : Mrs Priya Ramesh Rangdal (Zade)
38 pages
Unit 3 - Data Structure - WWW - Rgpvnotes.in
PDF
No ratings yet
Unit 3 - Data Structure - WWW - Rgpvnotes.in
18 pages
DimensionalityModeling 2023
PDF
No ratings yet
DimensionalityModeling 2023
25 pages
Maico Database Manual
PDF
No ratings yet
Maico Database Manual
11 pages
Platform Developer I Exam Revision 3 (1)
PDF
No ratings yet
Platform Developer I Exam Revision 3 (1)
54 pages
Unit 4
PDF
No ratings yet
Unit 4
5 pages
AL 0795 CSC 3 MOCK HIHS 2024 SET 1
PDF
No ratings yet
AL 0795 CSC 3 MOCK HIHS 2024 SET 1
6 pages
Sap Abap Sample Report
PDF
No ratings yet
Sap Abap Sample Report
98 pages
Chaitanya Resume
PDF
No ratings yet
Chaitanya Resume
4 pages
Java Spring Interview - Scenario Based
PDF
No ratings yet
Java Spring Interview - Scenario Based
67 pages
Lab2 Solution PDF
PDF
No ratings yet
Lab2 Solution PDF
2 pages
Unit 5 Mining Frequent Patterns and Cluster Analysis
PDF
No ratings yet
Unit 5 Mining Frequent Patterns and Cluster Analysis
63 pages
Slides Spark
PDF
No ratings yet
Slides Spark
8 pages
Groundwater Modeling in GSSHA: WMS 11.0 Tutorial
PDF
No ratings yet
Groundwater Modeling in GSSHA: WMS 11.0 Tutorial
14 pages
Downloadfile
PDF
No ratings yet
Downloadfile
4 pages
Papercut NG Quick Start Guide Education Windows 2017 11 20
PDF
No ratings yet
Papercut NG Quick Start Guide Education Windows 2017 11 20
57 pages
Hadoop Essentials Delve into the Key Concepts of Hadoop and Get a Thorough Understanding of the Hadoop Ecosystem 1st Edition Shiva Achari - Download the ebook now for an unlimited reading experience
PDF
100% (2)
Hadoop Essentials Delve into the Key Concepts of Hadoop and Get a Thorough Understanding of the Hadoop Ecosystem 1st Edition Shiva Achari - Download the ebook now for an unlimited reading experience
47 pages
Cambridge IGCSE: Computer Science 0478/22
PDF
No ratings yet
Cambridge IGCSE: Computer Science 0478/22
16 pages
Sow Ict501 Mac July2024
PDF
No ratings yet
Sow Ict501 Mac July2024
9 pages
Modelling A Complex Batch Schedule in Peoplesoft: David Kurtz
PDF
No ratings yet
Modelling A Complex Batch Schedule in Peoplesoft: David Kurtz
33 pages
DE_Subhani_Resume_FL
PDF
No ratings yet
DE_Subhani_Resume_FL
2 pages
Adodotnet Part II
PDF
No ratings yet
Adodotnet Part II
16 pages
Data , Database & DBMS
PDF
No ratings yet
Data , Database & DBMS
28 pages
DB Chap4 1
PDF
No ratings yet
DB Chap4 1
41 pages
MSSQL Exercise 2019 AUG
PDF
No ratings yet
MSSQL Exercise 2019 AUG
2 pages