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
2 pages
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
2 pages
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
Download
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
David Bawden - Lyn Robinson - Luciano Floridi - Introduction To Information Science-Facet Publishing (2022)
PDF
100% (2)
David Bawden - Lyn Robinson - Luciano Floridi - Introduction To Information Science-Facet Publishing (2022)
411 pages
DBML 3
PDF
No ratings yet
DBML 3
6 pages
20 SQL Exercises For Practice: Table Structure and Schema
PDF
100% (5)
20 SQL Exercises For Practice: Table Structure and Schema
12 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
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
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
Assignment MySQL 01
PDF
No ratings yet
Assignment MySQL 01
5 pages
Program 2
PDF
No ratings yet
Program 2
10 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
Assignment 2 (22BCE8809)
PDF
No ratings yet
Assignment 2 (22BCE8809)
12 pages
MySQL
PDF
No ratings yet
MySQL
16 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
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
Supervisor List
PDF
No ratings yet
Supervisor List
7 pages
Atharva Deshpande CV
PDF
No ratings yet
Atharva Deshpande CV
1 page
Retrieval Is All You Need - Developing An Ai Powered Chatbot With RAG in Azure
PDF
No ratings yet
Retrieval Is All You Need - Developing An Ai Powered Chatbot With RAG in Azure
28 pages
Wipro Recruitment Process
PDF
No ratings yet
Wipro Recruitment Process
11 pages
Systematic Reviews Constructing A Search Strategy.27
PDF
No ratings yet
Systematic Reviews Constructing A Search Strategy.27
8 pages
An Energy-Efficient Neural Network Accelerator With Improved Resilience Against Fault Attacks
PDF
No ratings yet
An Energy-Efficient Neural Network Accelerator With Improved Resilience Against Fault Attacks
11 pages
Upload Login Signup: Home Explore
PDF
No ratings yet
Upload Login Signup: Home Explore
60 pages
Unit 1 Spring 1
PDF
No ratings yet
Unit 1 Spring 1
16 pages
Improving Classification With AdaBoost
PDF
No ratings yet
Improving Classification With AdaBoost
20 pages
CSE_Final - 6th Sem - Scheme & Sylalabus
PDF
No ratings yet
CSE_Final - 6th Sem - Scheme & Sylalabus
50 pages
Infrastracture Assesmne Assignment
PDF
No ratings yet
Infrastracture Assesmne Assignment
10 pages
Resume Darshan Rathod
PDF
No ratings yet
Resume Darshan Rathod
1 page
Batch 1 Project Book
PDF
No ratings yet
Batch 1 Project Book
73 pages
MVC1
PDF
No ratings yet
MVC1
6 pages
Ma Chan Myae Thu (For Third Seminar)
PDF
No ratings yet
Ma Chan Myae Thu (For Third Seminar)
47 pages
OLAP Operations (Pivot) Group 5 (Assignment 2)
PDF
No ratings yet
OLAP Operations (Pivot) Group 5 (Assignment 2)
9 pages
718answer Key 30161 ECCDLO8012 NLP EXTC Sem VIII May 2023
PDF
100% (1)
718answer Key 30161 ECCDLO8012 NLP EXTC Sem VIII May 2023
8 pages
Dbms and Its Managerial Applications (Code: 307D) Unit-I: (A) Introduction To Database and Dbms Software: Database
PDF
No ratings yet
Dbms and Its Managerial Applications (Code: 307D) Unit-I: (A) Introduction To Database and Dbms Software: Database
24 pages
Wa0002.
PDF
No ratings yet
Wa0002.
28 pages
Prediction of Soil Moisture and Temperature Based On Deep Learning
PDF
No ratings yet
Prediction of Soil Moisture and Temperature Based On Deep Learning
6 pages
Data Analysis by Web Scraping Using Python
PDF
No ratings yet
Data Analysis by Web Scraping Using Python
6 pages
Expert System in Artificial Intelligence
PDF
No ratings yet
Expert System in Artificial Intelligence
15 pages
Science BSC Information Technology Semester 5 2019 November Next Generation Technologies Cbcs
PDF
No ratings yet
Science BSC Information Technology Semester 5 2019 November Next Generation Technologies Cbcs
21 pages
RS & GIS U - 2
PDF
No ratings yet
RS & GIS U - 2
10 pages
Naïve Bayes Classifier
PDF
No ratings yet
Naïve Bayes Classifier
18 pages
DB2
PDF
No ratings yet
DB2
11 pages
CHN1 Lec Session #22 Sas..
PDF
No ratings yet
CHN1 Lec Session #22 Sas..
5 pages
Few Shot Learning Seminar
PDF
No ratings yet
Few Shot Learning Seminar
14 pages
Edited Minor Project
PDF
No ratings yet
Edited Minor Project
46 pages