You are previewing Oracle® 9i SQL Exam Cram™ 2 (Exam 1Z0-007).
O'Reilly logo
Oracle® 9i SQL Exam Cram™ 2 (Exam 1Z0-007)

Book Description

Whether you're studying for the Oracle 9i SQL exam or just need to take the New Features update exam, Oracle 9i: SQL Exam Cram 2 can help you get certified. This efficient study guide follows the exam objectives clearly and concisely. New Features materials are also included in the book, as well as a full-customizable practice test engine on CD. Oracle 9i: SQL Exam Cram 2 is your smartest way to get certified.

Table of Contents

  1. Copyright
  2. Oracle 9i Cram Sheet
    1. The Iterative System Development Cycle
    2. Basic Terminology
    3. The SELECT Statement
      1. The WHERE Clause
      2. The ORDER BY Clause
      3. The GROUP BY Clause
    4. Joining Tables
    5. Specialized Queries
    6. Operators
    7. Conditions
    8. Pseudocolumns
    9. Expressions
    10. Functions
      1. Single Row Functions
    11. Aggregate Functions
    12. Changing Data (DML)
  3. A Note from Series Editor Ed Tittel
  4. About the Author
    1. Software Used During the Writing of This Book
    2. Other Sources of Information
    3. Other Titles by the Same Author
    4. About the Technical Reviewers
  5. We Want to Hear from You!
  6. Introduction
    1. How to Prepare for an Exam
      1. Practice Tests
    2. Taking a Certification Exam
      1. Scheduling a Certification Exam
      2. Arriving at the Exam Location
      3. In the Exam Room
      4. After the Exam
      5. Retaking a Test
    3. About This Book
      1. Chapter Elements
      2. Other Book Elements
      3. Chapter Contents
      4. Contacting the Author
  7. Self-Assessment
    1. Oracle9i SQL in the Real World
    2. The Ideal Oracle9i SQL Candidate
    3. Put Yourself to the Test
      1. Your Educational Background
      2. Your Hands-on Experience
      3. Testing Your Exam Readiness
    4. Assessing Your Readiness for the 1Z0-007 Exam
  8. 1. Getting Started with Oracle Database
    1. What Is an RDBMS?
      1. Basic Relational Data Modeling
        1. Normalization
        2. Referential Integrity
        3. Denormalization
      2. The Object-Relational Data Model
    2. Database Design and Modeling the Oracle Way
    3. What Is Oracle SQL?
    4. Tools
      1. SQL*Plus
      2. SQL*Plus Worksheet
      3. iSQL*Plus
      4. Oracle Enterprise Manager
    5. Oracle SQL New Features for Oracle9i
      1. General
      2. SQL Statements
        1. DML Commands
        2. DDL Commands
      3. Datatypes
      4. Expressions
      5. Conditions
      6. Built-In Functions
    6. The MOVIES Schema
    7. Syntax Conventions Used in This Book
    8. Exam Prep Questions
  9. 2. Retrieving Data (SELECT)
    1. What Is a Query?
    2. SELECT Statement Syntax and Query Capabilities
      1. Selecting Columns from Tables
      2. Using Aliases
      3. Selecting from Other Database Objects
    3. Types of Queries
    4. Some Things We Can Do with SELECT
      1. The DUAL Table
      2. NULL Values
      3. The DISTINCT Clause
    5. Exam Prep Questions
  10. 3. Filtering (WHERE) and Sorting Data (ORDER BY)
    1. Filtering with the WHERE Clause
      1. WHERE Clause Syntax
      2. Comparison Conditions
      3. Logical Conditions
      4. Top-N Queries
    2. Sorting with the ORDER BY Clause
      1. ORDER BY Clause Syntax
      2. Sorting Using the ORDER BY Clause
        1. Sorting Methods
        2. Sorting Modifiers
    3. Exam Prep Questions
  11. 4. Operators, Conditions, Pseudocolumns, and Expressions
    1. Precedence
    2. Operators
    3. Conditions
    4. Pseudocolumns
    5. Expressions
    6. Exam Prep Questions
  12. 5. Single Row Functions
    1. What Is a Function?
      1. Types of Functions
      2. Where Can Functions Be Used?
    2. Single Row Functions
      1. String Functions
        1. String Functions Returning Numbers
        2. String Functions Returning Strings
      2. Number Functions
        1. Simple Calculators
        2. Trigonometry
        3. Logarithms
      3. Date Functions
        1. Simple Date Retrieval Functions
        2. Parts of Dates
        3. Time Zones
      4. Datatype Conversion Functions
        1. String Conversions
        2. Number Conversions
        3. Datetime Conversions
        4. ROWIDs and Hexadecimals
        5. Character Set Conversion Functions
        6. Obscure Conversion Functions
      5. Miscellaneous Functions
      6. XML and Other Obscure Functions
    3. User-Defined Functions
    4. Exam Prep Questions
  13. 6. Joining Tables
    1. What Is a Join?
    2. ANSI and Oracle Join Syntax
      1. ANSI Join Syntax
      2. Oracle Join Syntax
    3. Types of Joins
      1. Cross Join
      2. Inner Join
      3. Outer Join
        1. Left Outer Join
        2. Right Outer Join
        3. Full Outer Join
      4. Self Join
    4. Natural Joins Using ANSI Join Syntax
      1. The NATURAL Keyword
      2. The USING Clause
      3. The ON Clause
    5. Equi Joins (Equality), Anti Joins (Inequality), Range Joins, and Semi Joins
    6. Mutable and Complex Joins
    7. Exam Prep Questions
  14. 7. Groups and Summaries (GROUP BY)
    1. What Is >GROUP BY?
    2. Basic GROUP BY Clause Syntax
      1. GROUP BY Clause Rules
    3. Expanding the MOVIES Schema
    4. Grouping Functions
      1. Aggregate Functions
        1. Simple Summaries
        2. Simple Statistics
        3. Statistical Distributions
        4. Rankings
        5. Groupings
      2. Analytics
        1. Analytical-Only Functions
    5. Filtering with the HAVING Clause
    6. Extending GROUP BY: ROLLUP and CUBE
    7. Exam Prep Questions
  15. 8. Subqueries and Other Specialized Queries
    1. What Is a Subquery?
    2. Where Can Subqueries Be Located?
    3. Comparison Condition Subquery Syntax
    4. Types of Subquery
      1. Scalar Subquery
      2. Single Row Subquery
      3. Multiple Row Subquery
      4. Multiple Column Subquery
      5. Correlated Subquery
      6. Inline View
      7. Nested Subquery
    5. The WITH Clause
    6. Specialized Queries
      1. Composite Query
      2. Hierarchical Query
      3. Parallel Query
      4. Flashback Query
    7. Exam Prep Questions
  16. 9. SQL*Plus Formatting
    1. Environmental Settings
      1. The SHOW Command
      2. The SET Command
      3. The Syntax of Environmental Settings
    2. Scripts and Variable Substitution
      1. Scripting in SQL*Plus
      2. Variable Substitution in SQL*Plus
        1. The DEFINE Command
        2. The UNDEFINE Command
    3. Formatting for Readability
      1. Column Formatting and Headings
      2. Headers and Footers
        1. Report Headers and Footers
      3. Page Headers and Footers
      4. Page Breaks and Grouping Computations
    4. iSQL*Plus
      1. Differences Between SQL*Plus and iSQL*Plus
      2. HTML Embedded Scripts
      3. Customizing Display
    5. Exam Prep Questions
  17. 10. Changing Data (DML)
    1. What Is the Difference Between DML and DDL?
    2. The INSERT Command
      1. Single Table INSERT
      2. Multiple Table INSERT
        1. Conditional Multiple Table INSERT Command
        2. Non-Conditional Multiple Table INSERT Command
    3. The UPDATE Command
    4. The DELETE Command
      1. The TRUNCATE Command
    5. The MERGE Command
    6. Transactional Control
      1. COMMIT, ROLLBACK, and SAVEPOINT
      2. SET TRANSACTION
    7. Exam Prep Questions
  18. 11. Tables, Datatypes, and Constraints (DDL)
    1. Database Objects
    2. Creating Tables
      1. Datatypes
        1. Oracle Built-In Datatypes
        2. User-Defined Datatypes
      2. Constraints
    3. Altering Tables
      1. Columns
      2. Constraints
    4. Dropping and Truncating Tables
    5. Metadata Views
      1. Tables
      2. Datatypes
      3. Constraints
    6. Exam Prep Questions
  19. 12. Views, Indexes, Sequences, and Synonyms (DDL)
    1. Views
      1. Creating Views
        1. Changing Data from Views
        2. Updatable Table Columns Through Views
        3. Adding Constraints to Views
      2. Altering and Dropping Views
      3. Inline Views and Top-N Analysis
    2. Indexes
      1. Creating Indexes
      2. Altering and Dropping Indexes
    3. Sequences
    4. Synonyms
    5. Metadata Views
      1. Views
      2. Indexes
      3. Sequences and Synonyms
      4. Finding the Right Metadata Views
    6. Exam Prep Questions
  20. 13. Security (DDL)
    1. Schemas and Users
      1. Types of Users
      2. Creating Users
    2. Grouping Privileges Using Roles
    3. Privileges
      1. Granting Privileges
      2. Revoking Privileges
    4. Metadata Views
    5. Exam Prep Questions
  21. 14. Practice Test #1 (60 questions)
  22. 15. Answer Key to Practice Test #1
  23. 16. Practice Test #2
  24. 17. Answer Key to Practice Test #2
  25. A. CD Contents and Installation Instructions
    1. Multiple Test Modes
      1. Study Mode
      2. Certification Mode
      3. Custom Mode
      4. Adaptive Mode
      5. Missed Question Mode
      6. Non-Duplicate Mode
    2. Question Types
    3. Random Questions and Order of Answers
    4. Detailed Explanations of Correct and Incorrect Answers
    5. Attention to Exam Objectives
    6. Installing the CD
      1. Creating a Shortcut to the MeasureUp Practice Tests
    7. Technical Support
  26. B. Need to Know More?
    1. Chapter 1
    2. Chapter 2
    3. Chapter 3
    4. Chapter 4
    5. Chapter 5
    6. Chapter 6
    7. Chapter 7
    8. Chapter 8
    9. Chapter 9
    10. Chapter 10
    11. Chapter 11
    12. Chapter 12
    13. Chapter 13
    14. Chapters 14–17
  27. Glossary