Skip to Main Content
Oracle in a Nutshell
book

Oracle in a Nutshell

by Rick Greenwald, David C. Kreines
December 2002
Intermediate to advanced content levelIntermediate to advanced
928 pages
85h 29m
English
O'Reilly Media, Inc.
Content preview from Oracle in a Nutshell

Name

SELECT

Synopsis

SELECT [{DISTINCT | UNIQUE | ALL}]
{ [schema.]{table_name. | view. | snapshot.} 
|  expr [[AS] alias][,expr [[AS] alias] ...] 
| *
}
FROM 
{table_name[@dblink] [AS OF {SCN | TIMESTAMP} expr] 
| table_name PARTITION (partition_name) [AS OF {SCN | TIMESTAMP} expr] 
| table_name SUBPARTITION (subpartition_name) [AS OF {SCN | TIMESTAMP} expr] 
| table_name SAMPLE [BLOCK] sample_percent [AS OF {SCN | TIMESTAMP} expr] 
| view[@dblink] [AS OF {SCN | TIMESTAMP} expr]  
| snapshot[@dblink] [AS OF {SCN | TIMESTAMP} expr] 
| (subquery) 
| table_name 
  { [join_type] JOIN table_name
    { ON condition 
    | USING (column [, column]... )
  | { CROSS JOIN | NATURAL [join_type] JOIN table_name }
  } 
[,[table_alias]
[,table_name[@dblink] [AS OF {SCN | TIMESTAMP} expr] 
| table_name PARTITION (partition_name) [AS OF {SCN | TIMESTAMP} expr] 
| table_name SUBPARTITION (subpartition_name) [AS OF {SCN | TIMESTAMP} expr] 
| table_name SAMPLE [BLOCK] sample_percent [AS OF {SCN | TIMESTAMP} expr] 
| view[@dblink] [AS OF {SCN | TIMESTAMP} expr]  
| snapshot[@dblink] [AS OF {SCN | TIMESTAMP} expr] 
| (subquery) 
| table_name 
  { [join_type] JOIN table_name
    { ON condition 
    | USING (column [, column]... )}
  | { CROSS JOIN | NATURAL [join_type] JOIN table_name }
  }
} 
[table_alias]]
[WHERE condition]
{[GROUP BY {expr | {expr[,expr ...]} 
| CUBE (expr[,expr ...]) 
| ROLLUP (expr[,expr ...]) 
}
GROUPING SETS (
  {expr | {expr[,expr ...]} 
  | CUBE (expr[,expr ...]) 
  | ROLLUP (expr[,expr ...])
  } 
[HAVING condition]
[[START WITH condition] CONNECT ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Oracle Internals

Oracle Internals

Donald K. Burleson
Oracle PL/SQL

Oracle PL/SQL

Lewis Cunningham
Oracle Essentials: Oracle9i, Oracle8i and Oracle8, Second Edition

Oracle Essentials: Oracle9i, Oracle8i and Oracle8, Second Edition

Rick Greenwald, Robert Stackowiak, Jonathan Stern

Publisher Resources

ISBN: 0596003366Errata Page