You are on page 1of 10

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY.

COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Oracle University and Egabi Solutions use only

Table Descriptions

Overall Description
The Oracle Database sample schemas portray a sample company that operates worldwide to
fill orders for several different products. The company has three divisions:
Human Resources: Tracks information about the employees and facilities
Order Entry: Tracks product inventories and sales through various channels
Sales History: Tracks business statistics to facilitate business decisions
Each of these divisions is represented by a schema. In this course, you have access to the
objects in all the schemas. However, the emphasis of the examples, demonstrations, and
practices is on the Human Resources (HR) schema.
All scripts necessary to create the sample schemas reside in the
$ORACLE_HOME/demo/schema/ folder.
Human Resources (HR)
This is the schema that is used in this course. In the Human Resource (HR) records, each
employee has an identification number, email address, job identification code, salary, and
manager. Some employees earn commissions in addition to their salary.
The company also tracks information about jobs within the organization. Each job has an
identification code, job title, and a minimum and maximum salary range for the job. Some
employees have been with the company for a long time and have held different positions
within the company. When an employee resigns, the duration the employee was working for,
the job identification number, and the department are recorded.
The sample company is regionally diverse, so it tracks the locations of its warehouses and
departments. Each employee is assigned to a department, and each department is identified
either by a unique department number or a short name. Each department is associated with
one location, and each location has a full address that includes the street name, postal code,
city, state or province, and the country code.
In places where the departments and warehouses are located, the company records details
such as the country name, currency symbol, currency name, and the region where the country
is located geographically.

Oracle Database 12c: SQL Workshop II A - 2

Oracle University and Egabi Solutions use only

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Schema Description

HR

DEPARTMENTS
department_id
department_name
manager_id
location_id

LOCATIONS
location_id
street_address
postal_code
city
state_province

JOB_HISTORY
employee_id
start_date
end_date
job_id
department_id

JOBS

job_id
job_title
min_salary
max_salary

EMPLOYEES
employee_id
first_name
last_name
email
phone_number
hire_date
job_id
salary
commission_pct
manager_id
department_id

COUNTRIES

Oracle Database 12c: SQL Workshop II A - 3

country_id
country_name
region_id

REGIONS
region_id
region_name

Oracle University and Egabi Solutions use only

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

HR Entity Relationship Diagram

Oracle University and Egabi Solutions use only

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

Human Resources (HR) Table Descriptions


DESCRIBE countries

SELECT * FROM countries

Oracle Database 12c: SQL Workshop II A - 4

Oracle University and Egabi Solutions use only

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

DESCRIBE departments

SELECT * FROM departments

Oracle Database 12c: SQL Workshop II A - 5

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

SELECT * FROM employees

Oracle Database 12c: SQL Workshop II A - 6

. . .

Oracle University and Egabi Solutions use only

DESCRIBE employees

Oracle University and Egabi Solutions use only

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

DESCRIBE job_history

SELECT * FROM job_history

Oracle Database 12c: SQL Workshop II A - 7

Oracle University and Egabi Solutions use only

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

DESCRIBE jobs

SELECT * FROM jobs

Oracle Database 12c: SQL Workshop II A - 8

Oracle University and Egabi Solutions use only

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

DESCRIBE locations

SELECT * FROM locations

Oracle Database 12c: SQL Workshop II A - 9

Oracle University and Egabi Solutions use only

THESE eKIT MATERIALS ARE FOR YOUR USE IN THIS CLASSROOM ONLY. COPYING eKIT MATERIALS FROM THIS COMPUTER IS STRICTLY PROHIBITED

DESCRIBE regions

SELECT * FROM regions

Oracle Database 12c: SQL Workshop II A - 10

You might also like