Beruflich Dokumente
Kultur Dokumente
1-2
Electronic
spreadsheet
1-3
Filing cabinet
Database
1-4
1-5
Data Models
Model of
system
in clients
mind
Entity model of
clients model
Table model
of entity model
Oracle
server
Tables on disk
1-6
assigned to
composed of
DEPARTMENT
#*
number
*
name
o
location
Scenario:
. . . Assign one or more employees to a
department . . .
. . . Some departments do not yet have assigned employees
. . .
1-7
DEPARTMENT
#*
number
*
name
composed of o
location
assigned to
Primary key
1-9
Primary key
Foreign key
Copyright 2012, Oracle and/or its affiliates. All rights reserved.
2
6
1 - 10
Oracle
server
1 - 11
1 - 12
SELECT
INSERT
UPDATE
DELETE
MERGE
CREATE
ALTER
DROP
RENAME
TRUNCATE
COMMENT
GRANT
REVOKE
COMMIT
ROLLBACK
SAVEPOINT
Transaction control
SQL Developer
1 - 13
SQL*Plus
DEPARTMENTS
LOCATIONS
department_id
department name
manager_id
location_id
location_id
street address
postal code
city
state province
Country id
JOB_HISTORY
employee_id
start_date
end_date
job_id
department_id
JOBS
job_id
job_title
min_salary
max_salary
1 - 14
EMPLOYEES
employee_id
first_name
last_name
email
phone_number
hire_date
job_id
salary
commission_pct
manager_id
department_id
COUNTRIES
country_id
country_name
region_id
REGIONS
region_id
region_name
JOB_GRADES
1 - 15
DEPARTMENTS
Practice 1: Overview
This practice covers the following topics:
Starting Oracle SQL Developer
Creating a new database connection
Browsing the HR tables
1 - 16