Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
5 views

HR Data Loading Script

The document contains SQL insert statements for populating four tables: regions, countries, locations, jobs, departments, and employees. Each table is filled with various entries that include identifiers, names, and other relevant attributes. This structured data is intended for use in a relational database system.

Uploaded by

kenomeshack
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

HR Data Loading Script

The document contains SQL insert statements for populating four tables: regions, countries, locations, jobs, departments, and employees. Each table is filled with various entries that include identifiers, names, and other relevant attributes. This structured data is intended for use in a relational database system.

Uploaded by

kenomeshack
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 6

/*Data for the table regions */

INSERT INTO regions(region_id,region_name) VALUES (1,'Europe');


INSERT INTO regions(region_id,region_name) VALUES (2,'Americas');
INSERT INTO regions(region_id,region_name) VALUES (3,'Asia');
INSERT INTO regions(region_id,region_name) VALUES (4,'Middle East and Africa');

/*Data for the table countries */


INSERT INTO countries(country_id,country_name,region_id) VALUES
('AR','Argentina',2);
INSERT INTO countries(country_id,country_name,region_id) VALUES
('AU','Australia',3);
INSERT INTO countries(country_id,country_name,region_id) VALUES ('BE','Belgium',1);
INSERT INTO countries(country_id,country_name,region_id) VALUES ('BR','Brazil',2);
INSERT INTO countries(country_id,country_name,region_id) VALUES ('CA','Canada',2);
INSERT INTO countries(country_id,country_name,region_id) VALUES
('CH','Switzerland',1);
INSERT INTO countries(country_id,country_name,region_id) VALUES ('CN','China',3);
INSERT INTO countries(country_id,country_name,region_id) VALUES ('DE','Germany',1);
INSERT INTO countries(country_id,country_name,region_id) VALUES ('DK','Denmark',1);
INSERT INTO countries(country_id,country_name,region_id) VALUES ('EG','Egypt',4);
INSERT INTO countries(country_id,country_name,region_id) VALUES ('FR','France',1);
INSERT INTO countries(country_id,country_name,region_id) VALUES
('HK','HongKong',3);
INSERT INTO countries(country_id,country_name,region_id) VALUES ('IL','Israel',4);
INSERT INTO countries(country_id,country_name,region_id) VALUES ('IN','India',3);
INSERT INTO countries(country_id,country_name,region_id) VALUES ('IT','Italy',1);
INSERT INTO countries(country_id,country_name,region_id) VALUES ('JP','Japan',3);
INSERT INTO countries(country_id,country_name,region_id) VALUES ('KW','Kuwait',4);
INSERT INTO countries(country_id,country_name,region_id) VALUES ('MX','Mexico',2);
INSERT INTO countries(country_id,country_name,region_id) VALUES ('NG','Nigeria',4);
INSERT INTO countries(country_id,country_name,region_id) VALUES
('NL','Netherlands',1);
INSERT INTO countries(country_id,country_name,region_id) VALUES
('SG','Singapore',3);
INSERT INTO countries(country_id,country_name,region_id) VALUES ('UK','United
Kingdom',1);
INSERT INTO countries(country_id,country_name,region_id) VALUES ('US','United
States of America',2);
INSERT INTO countries(country_id,country_name,region_id) VALUES ('ZM','Zambia',4);
INSERT INTO countries(country_id,country_name,region_id) VALUES
('ZW','Zimbabwe',4);

/*Data for the table locations */

INSERT INTO
locations(location_id,street_address,postal_code,city,state_province,country_id)
VALUES (1400,'2014 Jabberwocky Rd','26192','Southlake','Texas','US');
INSERT INTO
locations(location_id,street_address,postal_code,city,state_province,country_id)
VALUES (1500,'2011 Interiors Blvd','99236','South San
Francisco','California','US');
INSERT INTO
locations(location_id,street_address,postal_code,city,state_province,country_id)
VALUES (1700,'2004 Charade Rd','98199','Seattle','Washington','US');
INSERT INTO
locations(location_id,street_address,postal_code,city,state_province,country_id)
VALUES (1800,'147 Spadina Ave','M5V 2L7','Toronto','Ontario','CA');
INSERT INTO
locations(location_id,street_address,postal_code,city,state_province,country_id)
VALUES (2400,'8204 Arthur St',NULL,'London',NULL,'UK');
INSERT INTO
locations(location_id,street_address,postal_code,city,state_province,country_id)
VALUES (2500,'Magdalen Centre, The Oxford Science Park','OX9
9ZB','Oxford','Oxford','UK');
INSERT INTO
locations(location_id,street_address,postal_code,city,state_province,country_id)
VALUES (2700,'Schwanthalerstr. 7031','80925','Munich','Bavaria','DE');

/*Data for the table jobs */

insert into jobs values


('AC_ACCOUNT','Public Accountant',4200,9000),
('AC_MGR','Accounting Manager',8200,16000),
('AD_ASST','Administration Assistant',3000,6000),
('AD_PRES','President',20000,40000),
('AD_VP','Administration Vice President',15000,30000),
('FI_ACCOUNT','Accountant',4200,9000),
('FI_MGR','Finance Manager',8200,16000),
('HR_REP','Human Resources Representative',4000,9000),
('IT_PROG','Programmer',4000,10000),
('MK_MAN','Marketing Manager',9000,15000),
('MK_REP','Marketing Representative',4000,9000),
('PR_REP','Public Relations Representative',4500,10500),
('PU_CLERK','Purchasing Clerk',2500,5500),
('PU_MAN','Purchasing Manager',8000,15000),
('SA_MAN','Sales Manager',10000,20000),
('SA_REP','Sales Representative',6000,12000),
('SH_CLERK','Shipping Clerk',2500,5500),
('ST_CLERK','Stock Clerk',2000,5000),
('ST_MAN','Stock Manager',5500,8500);

/*Data for the table departments */

INSERT INTO departments(department_id,department_name,location_id) VALUES


(1,'Administration',1700);
INSERT INTO departments(department_id,department_name,location_id) VALUES
(2,'Marketing',1800);
INSERT INTO departments(department_id,department_name,location_id) VALUES
(3,'Purchasing',1700);
INSERT INTO departments(department_id,department_name,location_id) VALUES (4,'Human
Resources',2400);
INSERT INTO departments(department_id,department_name,location_id) VALUES
(5,'Shipping',1500);
INSERT INTO departments(department_id,department_name,location_id) VALUES
(6,'IT',1400);
INSERT INTO departments(department_id,department_name,location_id) VALUES
(7,'Public Relations',2700);
INSERT INTO departments(department_id,department_name,location_id) VALUES
(8,'Sales',2500);
INSERT INTO departments(department_id,department_name,location_id) VALUES
(9,'Executive',1700);
INSERT INTO departments(department_id,department_name,location_id) VALUES
(10,'Finance',1700);
INSERT INTO departments(department_id,department_name,location_id) VALUES
(11,'Accounting',1700);

/*Data for the table employees */

INSERT INTO
employees(employee_id,first_name,last_name,email,phone_number,hire_date,job_id,sala
ry,manager_id,department_id) VALUES
(100,'Steven','King','steven.king@sqltutorial.org','515.123.4567','1987-06-
17',4,24000.00,NULL,9);
INSERT INTO
employees(employee_id,first_name,last_name,email,phone_number,hire_date,job_id,sala
ry,manager_id,department_id) VALUES
(101,'Neena','Kochhar','neena.kochhar@sqltutorial.org','515.123.4568','1989-09-
21',5,17000.00,100,9);
INSERT INTO
employees(employee_id,first_name,last_name,email,phone_number,hire_date,job_id,sala
ry,manager_id,department_id) VALUES (102,'Lex','De Haan','lex.de
haan@sqltutorial.org','515.123.4569','1993-01-13',5,17000.00,100,9);
INSERT INTO
employees(employee_id,first_name,last_name,email,phone_number,hire_date,job_id,sala
ry,manager_id,department_id) VALUES
(103,'Alexander','Hunold','alexander.hunold@sqltutorial.org','590.423.4567','1990-
01-03',9,9000.00,102,6);
INSERT INTO
employees(employee_id,first_name,last_name,email,phone_number,hire_date,job_id,sala
ry,manager_id,department_id) VALUES
(104,'Bruce','Ernst','bruce.ernst@sqltutorial.org','590.423.4568','1991-05-
21',9,6000.00,103,6);
INSERT INTO
employees(employee_id,first_name,last_name,email,phone_number,hire_date,job_id,sala
ry,manager_id,department_id) VALUES
(105,'David','Austin','david.austin@sqltutorial.org','590.423.4569','1997-06-
25',9,4800.00,103,6);
INSERT INTO
employees(employee_id,first_name,last_name,email,phone_number,hire_date,job_id,sala
ry,manager_id,department_id) VALUES
(106,'Valli','Pataballa','valli.pataballa@sqltutorial.org','590.423.4560','1998-02-
05',9,4800.00,103,6);
INSERT INTO
employees(employee_id,first_name,last_name,email,phone_number,hire_date,job_id,sala
ry,manager_id,department_id) VALUES
(107,'Diana','Lorentz','diana.lorentz@sqltutorial.org','590.423.5567','1999-02-
07',9,4200.00,103,6);
INSERT INTO
employees(employee_id,first_name,last_name,email,phone_number,hire_date,job_id,sala
ry,manager_id,department_id) VALUES
(108,'Nancy','Greenberg','nancy.greenberg@sqltutorial.org','515.124.4569','1994-08-
17',7,12000.00,101,10);
INSERT INTO
employees(employee_id,first_name,last_name,email,phone_number,hire_date,job_id,sala
ry,manager_id,department_id) VALUES
(109,'Daniel','Faviet','daniel.faviet@sqltutorial.org','515.124.4169','1994-08-
16',6,9000.00,108,10);
INSERT INTO
employees(employee_id,first_name,last_name,email,phone_number,hire_date,job_id,sala
ry,manager_id,department_id) VALUES
(110,'John','Chen','john.chen@sqltutorial.org','515.124.4269','1997-09-
28',6,8200.00,108,10);
INSERT INTO
employees(employee_id,first_name,last_name,email,phone_number,hire_date,job_id,sala
ry,manager_id,department_id) VALUES
(111,'Ismael','Sciarra','ismael.sciarra@sqltutorial.org','515.124.4369','1997-09-
30',6,7700.00,108,10);
INSERT INTO
employees(employee_id,first_name,last_name,email,phone_number,hire_date,job_id,sala
ry,manager_id,department_id) VALUES (112,'Jose Manuel','Urman','jose
manuel.urman@sqltutorial.org','515.124.4469','1998-03-07',6,7800.00,108,10);
INSERT INTO
employees(employee_id,first_name,last_name,email,phone_number,hire_date,job_id,sala
ry,manager_id,department_id) VALUES
(113,'Luis','Popp','luis.popp@sqltutorial.org','515.124.4567','1999-12-
07',6,6900.00,108,10);
INSERT INTO
employees(employee_id,first_name,last_name,email,phone_number,hire_date,job_id,sala
ry,manager_id,department_id) VALUES
(114,'Den','Raphaely','den.raphaely@sqltutorial.org','515.127.4561','1994-12-
07',14,11000.00,100,3);
INSERT INTO
employees(employee_id,first_name,last_name,email,phone_number,hire_date,job_id,sala
ry,manager_id,department_id) VALUES
(115,'Alexander','Khoo','alexander.khoo@sqltutorial.org','515.127.4562','1995-05-
18',13,3100.00,114,3);
INSERT INTO
employees(employee_id,first_name,last_name,email,phone_number,hire_date,job_id,sala
ry,manager_id,department_id) VALUES
(116,'Shelli','Baida','shelli.baida@sqltutorial.org','515.127.4563','1997-12-
24',13,2900.00,114,3);
INSERT INTO
employees(employee_id,first_name,last_name,email,phone_number,hire_date,job_id,sala
ry,manager_id,department_id) VALUES
(117,'Sigal','Tobias','sigal.tobias@sqltutorial.org','515.127.4564','1997-07-
24',13,2800.00,114,3);
INSERT INTO
employees(employee_id,first_name,last_name,email,phone_number,hire_date,job_id,sala
ry,manager_id,department_id) VALUES
(118,'Guy','Himuro','guy.himuro@sqltutorial.org','515.127.4565','1998-11-
15',13,2600.00,114,3);
INSERT INTO
employees(employee_id,first_name,last_name,email,phone_number,hire_date,job_id,sala
ry,manager_id,department_id) VALUES
(119,'Karen','Colmenares','karen.colmenares@sqltutorial.org','515.127.4566','1999-
08-10',13,2500.00,114,3);
INSERT INTO
employees(employee_id,first_name,last_name,email,phone_number,hire_date,job_id,sala
ry,manager_id,department_id) VALUES
(120,'Matthew','Weiss','matthew.weiss@sqltutorial.org','650.123.1234','1996-07-
18',19,8000.00,100,5);
INSERT INTO
employees(employee_id,first_name,last_name,email,phone_number,hire_date,job_id,sala
ry,manager_id,department_id) VALUES
(121,'Adam','Fripp','adam.fripp@sqltutorial.org','650.123.2234','1997-04-
10',19,8200.00,100,5);
INSERT INTO
employees(employee_id,first_name,last_name,email,phone_number,hire_date,job_id,sala
ry,manager_id,department_id) VALUES
(122,'Payam','Kaufling','payam.kaufling@sqltutorial.org','650.123.3234','1995-05-
01',19,7900.00,100,5);
INSERT INTO
employees(employee_id,first_name,last_name,email,phone_number,hire_date,job_id,sala
ry,manager_id,department_id) VALUES
(123,'Shanta','Vollman','shanta.vollman@sqltutorial.org','650.123.4234','1997-10-
10',19,6500.00,100,5);
INSERT INTO
employees(employee_id,first_name,last_name,email,phone_number,hire_date,job_id,sala
ry,manager_id,department_id) VALUES
(126,'Irene','Mikkilineni','irene.mikkilineni@sqltutorial.org','650.124.1224','1998
-09-28',18,2700.00,120,5);
INSERT INTO
employees(employee_id,first_name,last_name,email,phone_number,hire_date,job_id,sala
ry,manager_id,department_id) VALUES
(145,'John','Russell','john.russell@sqltutorial.org',NULL,'1996-10-
01',15,14000.00,100,8);
INSERT INTO
employees(employee_id,first_name,last_name,email,phone_number,hire_date,job_id,sala
ry,manager_id,department_id) VALUES
(146,'Karen','Partners','karen.partners@sqltutorial.org',NULL,'1997-01-
05',15,13500.00,100,8);
INSERT INTO
employees(employee_id,first_name,last_name,email,phone_number,hire_date,job_id,sala
ry,manager_id,department_id) VALUES
(176,'Jonathon','Taylor','jonathon.taylor@sqltutorial.org',NULL,'1998-03-
24',16,8600.00,100,8);
INSERT INTO
employees(employee_id,first_name,last_name,email,phone_number,hire_date,job_id,sala
ry,manager_id,department_id) VALUES
(177,'Jack','Livingston','jack.livingston@sqltutorial.org',NULL,'1998-04-
23',16,8400.00,100,8);
INSERT INTO
employees(employee_id,first_name,last_name,email,phone_number,hire_date,job_id,sala
ry,manager_id,department_id) VALUES
(178,'Kimberely','Grant','kimberely.grant@sqltutorial.org',NULL,'1999-05-
24',16,7000.00,100,8);
INSERT INTO
employees(employee_id,first_name,last_name,email,phone_number,hire_date,job_id,sala
ry,manager_id,department_id) VALUES
(179,'Charles','Johnson','charles.johnson@sqltutorial.org',NULL,'2000-01-
04',16,6200.00,100,8);
INSERT INTO
employees(employee_id,first_name,last_name,email,phone_number,hire_date,job_id,sala
ry,manager_id,department_id) VALUES
(192,'Sarah','Bell','sarah.bell@sqltutorial.org','650.501.1876','1996-02-
04',17,4000.00,123,5);
INSERT INTO
employees(employee_id,first_name,last_name,email,phone_number,hire_date,job_id,sala
ry,manager_id,department_id) VALUES
(193,'Britney','Everett','britney.everett@sqltutorial.org','650.501.2876','1997-03-
03',17,3900.00,123,5);
INSERT INTO
employees(employee_id,first_name,last_name,email,phone_number,hire_date,job_id,sala
ry,manager_id,department_id) VALUES
(200,'Jennifer','Whalen','jennifer.whalen@sqltutorial.org','515.123.4444','1987-09-
17',3,4400.00,101,1);
INSERT INTO
employees(employee_id,first_name,last_name,email,phone_number,hire_date,job_id,sala
ry,manager_id,department_id) VALUES
(201,'Michael','Hartstein','michael.hartstein@sqltutorial.org','515.123.5555','1996
-02-17',10,13000.00,100,2);
INSERT INTO
employees(employee_id,first_name,last_name,email,phone_number,hire_date,job_id,sala
ry,manager_id,department_id) VALUES
(202,'Pat','Fay','pat.fay@sqltutorial.org','603.123.6666','1997-08-
17',11,6000.00,201,2);
INSERT INTO
employees(employee_id,first_name,last_name,email,phone_number,hire_date,job_id,sala
ry,manager_id,department_id) VALUES
(203,'Susan','Mavris','susan.mavris@sqltutorial.org','515.123.7777','1994-06-
07',8,6500.00,101,4);
INSERT INTO
employees(employee_id,first_name,last_name,email,phone_number,hire_date,job_id,sala
ry,manager_id,department_id) VALUES
(204,'Hermann','Baer','hermann.baer@sqltutorial.org','515.123.8888','1994-06-
07',12,10000.00,101,7);
INSERT INTO
employees(employee_id,first_name,last_name,email,phone_number,hire_date,job_id,sala
ry,manager_id,department_id) VALUES
(205,'Shelley','Higgins','shelley.higgins@sqltutorial.org','515.123.8080','1994-06-
07',2,12000.00,101,11);
INSERT INTO
employees(employee_id,first_name,last_name,email,phone_number,hire_date,job_id,sala
ry,manager_id,department_id) VALUES
(206,'William','Gietz','william.gietz@sqltutorial.org','515.123.8181','1994-06-
07',1,8300.00,205,11);

/*Data for the table job_history */

INSERT INTO job_history VALUES


(101,'1989-09-21','1993-10-27','AC_ACCOUNT',110),
(101,'1993-10-28','1997-03-15','AC_MGR',110),
(102,'1993-01-13','1998-07-24','IT_PROG',60),
(114,'1998-03-24','1999-12-31','ST_CLERK',50),
(122,'1999-01-01','1999-12-31','ST_CLERK',50),
(176,'1998-03-24','1998-12-31','SA_REP',80),
(176,'1999-01-01','1999-12-31','SA_MAN',80),
(200,'1987-09-17','1993-06-17','AD_ASST',90),
(200,'1994-07-01','1998-12-31','AC_ACCOUNT',90),
(201,'1996-02-17','1999-12-19','MK_REP',20);

You might also like