Professional Documents
Culture Documents
Agenda
• Classification of data
• Overview of relational database management concepts
• Introduction to SQL
• SQL development environments
• The HR schema and the tables used in this course
I-2
Classification of data
• Structured data
• Structured data concerns all data which can be stored in database
SQL in a table with rows and columns. Example: Relational data.
• Semi-Structured data
• Semi-structured data is information that does not reside in a
relational database but that has some organizational properties that
make it easier to analyze. Example: XML, JSON data.
• Unstructured data
• Unstructured data is a data which is not organized in a predefined
manner or does not have a predefined data model. Example: Word,
PDF, Text, videos.
I-3
Data Storage on Different Media
Electronic
Files Database
spreadsheet
I-4
Agenda
• Classification of data
• Overview of relational database management concepts
• Introduction to SQL
• SQL development environments
• The HR schema and the tables used in this course
I-5
Relational Database Concept
I-6
Definition of a Relational Database
Oracle server
… …
I-7
Data Models
Model of
Entity model of
system
client’s model
in client’s
mind
Table model
of entity model Oracle
server
Tables on disk
I-8
Entity Relationship Model
EMPLOYEE DEPARTMENT
assigned to
#* number #* number
* name * name
job title composed of location
o o
• Scenario:
– “. . . Assign one or more employees to a
department . . .”
I-9
Relating Multiple Tables
…
Primary key Foreign key Primary key
I - 25
Agenda
• Classification of data
• Overview of relational database management concepts
• Introduction to SQL
• SQL development environments
• The HR schema and the tables used in this course
I - 11
Using SQL to Query Your Database
server
I - 30
SQL Statements
SELECT
UPDATE
DELETE
CREATE
MERGE
ALTER
DROP Data definition language (DDL)
RENAME
TRUNCATE
COMMENT
COMMIT
ROLLBACK Transaction control
SAVEPOINT
I - 31
Agenda
• Classification of data
• Overview of relational database management concepts
• Introduction to SQL
• SQL development environments
• The HR schema and the tables used in this course
I - 14
Development Environments for SQL
I - 32
Agenda
• Classification of data
• Overview of relational database management concepts
• Introduction to SQL
• SQL development environments
• The HR schema and the tables used in this course
I - 16
The Human Resources (HR)
Schema
DEPARTMENTS LOCATIONS
department_id location_id
department_name street_address
manager_id postal_code
location_id city
state_province
country_id
JOB_HISTORY
employee_id
start_date
EMPLOYEES
employee_id
end_date
first_name
job_id last_name
department_id COUNTRIES
email country_id
phone_number country_name
hire_date region_id
job_id
salary
commission_pct
JOBS manager_id
job_id department_id
job_title
min_salary
REGIONS
region_id
max_salary
region_name
I - 34
Tables Used in the Course
EMPLOYEES
DEPARTMENTS JOB_GRADES
I - 35
Course Objectives
I - 19
Resources
I - 40