Introduction to SQL
Revision: TE1904_20061115
(7.07 KB) View, Download, or Print Catalog as a PDF.
Course Length:
3 Days
Course Description:
This course is designed to give users an understanding of Oracle using Oracle's SQL *Plus and iSQL*Plus tools. The course covers SQL commands for DML, DDL, Query, and Transaction Control operations. The course topics are applicable to all versions of Oracle through Oracle 10g.
Who Should Attend:
Application designers and developers, database administrators and operators, and end users should attend this course.
Benefits of Attendance:
Upon completion of this course, students will be able to:
- Explain the difference between SQL, PL/SQL and SQL*PLUS
- Write basic SQL queries to retrieve desired data
- Use DML statements (insert, update, and delete)
- Use DDL statements (create, alter, and drop)
- Use transaction control statements to commit, rollback, and create savepoints
- Write advanced queries
- Write scripts to do queries and display SQL*PLUS reports
- Control access to your database objects
Prerequisites:
There are no prerequisites for this course.
Course Outline:
- Chapter 1: Database Design
- Database Models
- Beginnings
- Some Introductory Terminology
- Codd's 12 Rules
- Normalization
- First Normal Form
- Higher Order Normal Forms
- Chapter 2: Oracle Standard Interfaces
- SQL
- SQL*Plus
- Oracle Architecture
- Interfaces to Oracle
- Command Line Interface
- Viewing a Sample Table
- The Graphical User Interface
- The SQL Buffer
- The Web-Based Interface
- Chapter 3: The Sample Database
- The Entity Relationship Model
- Entity Relationship Diagrams
- The Sample Database
- ER Diagram for Sample Database
- Creating the Sample Data
- Viewing Sample Data
- Data Types of the Sample Data
- Chapter 4: Data Definition Language
- Categories of SQL Statements
- Oracle Datatypes
- The CREATE Statement
- The DROP Command
- The ALTER Command
- Integrity Constraints
- Entity Integrity Constraints
- Referential Integrity Constraints
- Modifying Table to Use Constraints
- Checking Constraints
- The Data Dictionary
- Chapter 5: Data Manipulation Language
- DML Statements
- The SELECT Statement
- The INSERT Statement
- The DELETE Statement
- The UPDATE Statement
- More SQL*Plus Commands
- Chapter 6: Transaction Control
- Transactions
- Command Classification
- Savepoints
- The SET TRANSACTION command
- Chapter 7: SQL Operators
- Simple Selects
- Comparison Operators
- IN and NOT IN Operators
- BETWEEN Operator
- The LIKE Operator
- Logical Operators
- IS NULL and IS NOT NULL
- ANY
- ALL
- Chapter 8: SQL FUNCTIONS
- Introduction
- The DISTINCT Keyword
- Aliases
- Miscellaneous Functions
- Mathematical Functions
- String Functions
- Date Functions
- Conversion Functions
- Pseudo Columns
- Chapter 9: Joining Tables
- Joins
- Cartesian Product
- Inner joins
- Equi-Join
- Table Aliases
- Non-Equi Join
- Non-Key Join
- Reflexive Join
- Natural Join
- Outer Joins
- Right Outer Join
- Left Outer Join
- Full Outer Join
- Oracle-Specific Syntax for Outer Joins
- Chapter 10: Set Operators
- Introduction
- Selection Criteria
- Union
- Union All
- Intersect
- Minus
- Chapter 11: SQL Subqueries
- Introduction
- Using a Subquery with a DML Statement
- Typical Subqueries
- Subquery Operators
- Standard vs. Correlated Subqueries
- Correlated Subquery Example
- Predicate Operators
- Chapter 12: Groups
- SQL Statements
- GROUP BY Clause
- HAVING Clause
- Order of a SELECT Statement
- Chapter 13: More Database Objects
- More Database Objects
- Relational Views
- Updating a View
- Create or Replace
- Forcing a View
- The Data Dictionary Revisited
- Indexes
- Synonyms
- Chapter 14: Reports
- Report Features
- Session Control
- The SET Command
- The COLUMN Command
- The BREAK Command
- The COMPUTE Command
- Appendix A: An SQL and SQL*Plus Reference
- DLL Statements
- DML Statements
- Transaction Control Statements
- Operators
- Common SQL*Plus Commands



