Murach's Oracle SQL and PL/SQL
How to retrieve data from a single table
This chapter shows you how to use the SQL SELECT statement
to retrieve data from a single table. However, the skills
covered are the essential ones that apply to any SELECT statement,
no matter how many tables it operates on or how complex the
retrieval.
|
|
|
|
The basic syntax of the SELECT statement |
80 |
|
SELECT statement examples |
82 |
|
|
How to code column specifications |
84 |
|
How to name the columns in a result set |
86 |
|
How to code string expressions |
88 |
|
How to code arithmetic expressions |
90 |
|
How to use scalar functions |
92 |
|
How to use the Dual table |
94 |
|
How to use the DISTINCT keyword
to eliminate duplicate rows |
96 |
|
How to use the ROWNUM pseudo column
to limit the number of rows |
98 |
|
|
How to use comparison operators |
100 |
|
How to use the AND, OR, and NOT logical operators |
102 |
|
How to use the IN operator |
104 |
|
How to use the BETWEEN operator |
106 |
|
How to use the LIKE operator |
108 |
|
How to use the IS NULL condition |
110
|
|
|
How to sort a result by a column name |
112 |
|
How to sort a result set by an alias, an expression,
or a column number |
114 |
|
 |
|
|
|
|
© Copyright 1998-2009 Mike
Murach & Associates, Inc. All rights reserved.
|