Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
D80190GC11
Edition 1.1
July 2014
D87240
Author Copyright © 2014, Oracle and/or its affiliates. All rights reserved.
Dimpi Rani Sarmah Disclaimer
Madhavi Siddireddy
Editors
Smita Kommini
Aju Kumar
Publishers
Pavithran Adka
Giri Venugopal
Contents
iii
2 Retrieving Data Using the SQL SELECT Statement
Objectives 2-2
Lesson Agenda 2-3
Basic SELECT Statement 2-4
iv
Using the IN Operator 3-11
Pattern Matching Using the LIKE Operator 3-12
Combining Wildcard Characters 3-13
Using NULL Conditions 3-14
Defining Conditions Using Logical Operators 3-15
v
Character-Manipulation Functions 4-13
Using Character-Manipulation Functions 4-14
Lesson Agenda 4-15
Nesting Functions 4-16
Nesting Functions: Example 4-17
vi
Using the NVL Function 5-24
Using the NVL2 Function 5-25
Using the NULLIF Function 5-26
Using the COALESCE Function 5-27
Lesson Agenda 5-29
vii
7 Displaying Data from Multiple Tables Using Joins
Objectives 7-2
Lesson Agenda 7-3
Obtaining Data from Multiple Tables 7-4
viii
8 Using Subqueries to Solve Queries
Objectives 8-2
Lesson Agenda 8-3
Using a Subquery to Solve a Problem 8-4
Subquery Syntax 8-5
ix
INTERSECT Operator 9-18
Using the INTERSECT Operator 9-19
Lesson Agenda 9-20
MINUS Operator 9-21
Using the MINUS Operator 9-22
x
Advantages of COMMIT and ROLLBACK Statements 10-28
Explicit Transaction Control Statements 10-29
Rolling Back Changes to a Marker 10-30
Implicit Transaction Processing 10-31
State of Data Before COMMIT or ROLLBACK 10-33
xi
CREATE TABLE: Example 11-27
Violating Constraints 11-28
Lesson Agenda 11-30
Creating a Table Using a Subquery 11-31
Lesson Agenda 11-33
A Table Descriptions
xii
Creating a User-Defined Report B-29
Search Engines and External Tools B-30
Setting Preferences B-31
Resetting the SQL Developer Layout B-33
Data Modeler in SQL Developer B-34
C Using SQL*Plus
Objectives C-2
SQL and SQL*Plus Interaction C-3
SQL Statements Versus SQL*Plus Commands C-4
SQL*Plus: Overview C-5
Logging In to SQL*Plus C-6
Displaying the Table Structure C-7
SQL*Plus Editing Commands C-9
Using LIST, n, and APPEND C-11
Using the CHANGE Command C-12
SQL*Plus File Commands C-13
Using the SAVE and START Commands C-14
SERVEROUTPUT Command C-15
Using the SQL*Plus SPOOL Command C-16
Using the AUTOTRACE Command C-17
Summary C-18
xiii
UPDATE Statement Syntax D-18
DELETE Statement D-19
Transaction Control Statements D-20
COMMIT Statement D-21
ROLLBACK Statement D-22
xiv