Professional Documents
Culture Documents
Introduction
Lesson Objectives
After completing this lesson, you should be able to do the
following:
Discuss the goals of the course
Describe the database schema and tables that are used in
the course
Identify the available environments that can be used in the
course
Review some of the basic concepts of SQL
1-2
Lesson Agenda
1-3
Course Objectives
After completing this course, you should be able to do the
following:
Control database access to specific objects
Add new users with different levels of access privileges
Manage schema objects
Manage objects with data dictionary views
Manipulate large data sets in the Oracle database by using
subqueries
Manage data in different time zones
Write multiple-column subqueries
Use scalar and correlated subqueries
Use the regular expression support in SQL
1-4
Course Prerequisites
The Oracle Database: SQL Fundamentals I course is a
prerequisite for this course.
1-5
Course Agenda
Day 1:
Day 2:
1-6
Introduction
Controlling User Access
Managing Schema Objects
Managing Objects with Data Dictionary Views
Manipulating Large Data Sets
Managing Data in Different Time Zones
Retrieving Data by Using Subqueries
Regular Expression Support
Lesson Agenda
1-7
DEPARTMENTS
department_id
department_name
manager_id
location_id
LOCATIONS
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
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
JOB_GRADES
region_id
region_name
grade_level
lowest_sal
highest_sal
1-8
1 - 10
Development Environments
There are two development environments for this course:
The primary tool is Oracle SQL Developer.
You can also use SQL*Plus command-line interface.
SQL Developer
1 - 11
SQL *Plus
Lesson Agenda
1 - 12
1 - 13
Meaning
BETWEEN
...AND...
IN(set)
LIKE
1 - 14
Functions
1 - 15
Single-row
functions
Multiple-row
functions
Character
Single-row
functions
General
Conversion
1 - 16
Number
Date
1 - 17
AVG
COUNT
MAX
MIN
STDDEV
SUM
VARIANCE
Group
functions
1 - 18
Types of subqueries:
Single-row subquery
Multiple-row subquery
1 - 20
Function
Description
INSERT
UPDATE
DELETE
MERGE
Lesson Agenda
1 - 22
1 - 23
Additional Resources
For additional information about the new Oracle 11g SQL, refer
to the following:
Oracle Database 11g: New Features eStudies
Oracle by Example series (OBE): Oracle Database 11g
1 - 24
Summary
In this lesson, you should have learned the following:
The course objectives
The sample tables used in the course
1 - 25
Practice 1: Overview
This practice covers the following topics:
Running the SQL Developer online tutorial
Starting SQL Developer and creating a new database
connection and browsing the tables
Executing SQL statements using the SQL Worksheet
Reviewing the basic concepts of SQL
1 - 26