oracle 10g sql fundamental

4
Oracle University | Contact Us: 1.800.529.0165 Oracle Database 10g: SQL Fundamentals I Duration: 3 Days What you will learn This course offers students an introduction to Oracle Database 10g database technology. In this class, students learn the concepts of relational databases and the powerful SQL programming language. This course provides the essential SQL skills that allow developers to write queries against single and multiple tables, manipulate data in tables, create database objects, and query meta data. Demonstrations and hands-on practices reinforce the fundamental concepts. Learn to: Use SQL Statements to retrieve data from tables Create and Manage Tables Employ SQL functions to generate and retrieve customized data Run data manipulation statements (DML) to update data in the Oracle Database 10g Audience Application Developers Business Intelligence Developer Database Administrators Database Designers End Users Forms Developer PL/SQL Developer Portal Developer Prerequisites Suggested Prerequisites Familiarity with Data Processing Concepts and Techniques Ability to use a graphical user interface (GUI) Course Objectives Identify the major structural components of Oracle Database 10g Retrieve row and column data from tables with the SELECT statement Create reports of sorted and restricted data Employ SQL functions to generate and retrieve customized data Create reports of aggregated data Write SELECT statements that include queries Use the SET operators to create subsets of data Run data manipulation statements (DML) to update data in the Oracle Database 10g Create tables to store data Utilize views to display and retrieve data Create sequences to generate numbers Obtain meta data by querying the dictionary views. Copyright © 2009, Oracle. All rights reserved. Page 1

Upload: syed-jafri

Post on 08-Nov-2014

16 views

Category:

Documents


0 download

DESCRIPTION

Oracle 10g SQL Fundamental

TRANSCRIPT

Page 1: Oracle 10g SQL Fundamental

Oracle University | Contact Us: 1.800.529.0165

Oracle Database 10g: SQL Fundamentals I

Duration: 3 Days

What you will learn

This course offers students an introduction to Oracle Database 10g database technology. In this class, students learn

the concepts of relational databases and the powerful SQL programming language. This course provides the essential

SQL skills that allow developers to write queries against single and multiple tables, manipulate data in tables, create

database objects, and query meta data.

Demonstrations and hands-on practices reinforce the fundamental concepts.

Learn to:

Use SQL Statements to retrieve data from tables

Create and Manage Tables

Employ SQL functions to generate and retrieve customized data

Run data manipulation statements (DML) to update data in the Oracle Database 10g

AudienceApplication DevelopersBusiness Intelligence DeveloperDatabase AdministratorsDatabase DesignersEnd UsersForms DeveloperPL/SQL DeveloperPortal Developer

PrerequisitesSuggested PrerequisitesFamiliarity with Data Processing Concepts and TechniquesAbility to use a graphical user interface (GUI)

Course ObjectivesIdentify the major structural components of Oracle Database 10gRetrieve row and column data from tables with the SELECT statementCreate reports of sorted and restricted dataEmploy SQL functions to generate and retrieve customized dataCreate reports of aggregated dataWrite SELECT statements that include queriesUse the SET operators to create subsets of dataRun data manipulation statements (DML) to update data in the Oracle Database 10gCreate tables to store dataUtilize views to display and retrieve dataCreate sequences to generate numbersObtain meta data by querying the dictionary views.

Copyright © 2009, Oracle. All rights reserved. Page 1

Page 2: Oracle 10g SQL Fundamental

Course Topics

IntroductionList the Oracle Database 10g Main FeaturesAn Overview of: components, internet platform, app server and developer suiteDescribe Relational and Object Relational Database DesignsReview the System Development Life CycleDefine the term Data ModelsDescribe different means of Sorting DataShow how Multiple Tables can be relatedDescribe how SQL Communicates to the Database

Writing SQL SELECT statementsDefine projection, selection, and join terminologyReview the basic SQL SELECT statement syntaxSelect all columns using a wildcard notation from a tableState simple rules and guidelines for writing SQL statementsWrite a query containing the arithmetic operatorsUse aliases to customize column headingsCreate a character expression with the concatenation operatorUse the quote operator q to control text strings containing the quote character

Using the iSQL*Plus EnvironmentSQL statements versus iSQL*Plus commandsExplaining the iSQL*Plus interfaceInteracting with script filesSetting iSQL*Plus Preferences

Restricting DataLimit Rows Using a SelectionUse the WHERE ClauseList the main Comparison ConditionsUse the LIKE Condition to Compare Literal ValuesList the Logical Conditions AND, OR, NOTUse Multiple Conditions in the WHERE clauseDescribe the Rules of Precedence

Sorting DataSort Rows with the ORDER BY ClauseUse the && Substitution VariableUse the iSQL*Plus DEFINE CommandUse the VERIFY Command

SQL FunctionsDifferentiate between Single Row and Multiple Row SQL FunctionsCategorize the Character Functions into Case Manipulation and Character Manipulation typesExplain the Numeric Functions ROUND, TRUNC, and MODList the Rules for Applying the Arithmetic Operators on DatesUse the Arithmetic Operators with Dates in the SELECT ClauseExplain the DATE functions MONTHS_BETWEEN, ADD_MONTHS, NEXT_DAY, LAST_DAY, ROUND, and TRUNCExplain Implicit and Explicit conversionNest Functions to Perform Multiple Tasks in One Statement

Copyright © 2009, Oracle. All rights reserved. Page 2

Page 3: Oracle 10g SQL Fundamental

Conditional ExpressionsUse the CASE ExpressionExplain the DECODE Expression

Aggregating Data Using Group FunctionsCategorize the Types of Group FunctionsUse the AVG, SUM, MAX, MIN, and COUNT Functions in a QueryUtilize the DISTINCT Keyword with the Group FunctionsDescribe how Nulls are handled with the Group FunctionsCreate Groups of Data with the GROUP BY ClauseGroup Data by more than one columnAvoid Illegal Queries with the Group FunctionsExclude Groups of Data with the HAVING Clause

Displaying Data from Multiple TablesIdentify Types of JoinsRetrieve Records with Natural JoinsUse Table Aliases to write shorter code and explicitly identify columns from multiple tablesCreate a Join with the USING clause to identify specific columns between tablesUse the ON clause to specify arbitrary conditions or specify columns to JoinCreate a Three-way join with the ON clause to retrieve information from 3 tablesList the Types of Outer Joins LEFT, RIGHT, and FULLGenerating a Cartesian Product

Using SubqueriesUse a sub query to solve a problemIdentify where sub queries can be placed in a SELECT statementDescribe the types of sub queries (single row, multiple row)Show the single row sub query operatorsUse the group functions in a sub queryIdentify illegal statements with sub queriesShow the multiple row sub query operatorsExplain how null values are handled in sub queries

Using the Set OperatorsUse the UNION operator to return all rows from multiple tables and eliminate any duplicate rowsUse the UNION ALL operator to return all rows from multiple tables (with duplicates)Describe the INTERSECT operatorUse the INTERSECT operatorExplain the MINUS operatorUse the MINUS operatorList the SET operator guidelinesOrder results when using the UNION operator

Inserting and Updating DataWrite INSERT statements to add rows to a tableInsert Special ValuesCopy Rows from Another TableUpdate Rows in a Table

Deleting DataUse DELETE statements to remove rows from a table

Copyright © 2009, Oracle. All rights reserved. Page 3

Page 4: Oracle 10g SQL Fundamental

Delete Rows Based on Another TableDescribe the TRUNCATE Statement

Database TransactionsSave and Discard Changes to a Table through Transaction Processing (COMMIT, ROLLBACK, and SAVEPOINT)Show how Read Consistency works

Using DDL StatementsList the main database objectsIdentify the Naming RulesDisplay the basic Syntax for Creating a TableShow the DEFAULT optionList the Data Types that are available for Columns

Managing TablesExplain the different types of constraintsShow resulting exceptions when constraints are violated with DML statementsCreate a table with a sub queryDescribe the ALTER TABLE functionalityRemove a table with the DROP statement

Creating Other Schema ObjectsCategorize simple and complex views and compare themCreate a viewRetrieve data from a viewExplain a read-only viewList the rules for performing DML on complex viewsCreate a sequenceList the basic rules for when to create and not create an indexCreate a synonym

Managing Objects with Data Dictionary ViewsDescribe the structure of each of the dictionary viewsList the purpose of each of the dictionary viewsWrite queries that retrieve information from the dictionary views on the schema objectsUse the COMMENT command to document objects

AppendicesOracle Join SyntaxUsing SQL*PlusUsing SQL DeveloperAdditional Practices

Copyright © 2009, Oracle. All rights reserved. Page 4