Literals.................................................................................................................................................274
Character String Literals................................................................................................................274
Datetime Literals............................................................................................................................275
Interval Literals..............................................................................................................................277
Numeric Literals............................................................................................................................279
Materialized Views.............................................................................................................................281
Types of Materialized Views..........................................................................................................281
MVGROUPs .......................................................................................................................................282
Null......................................................................................................................................................283
Partitions.............................................................................................................................................285
Hash Partition Keys.......................................................................................................................285
Predicates............................................................................................................................................286
BETWEEN Predicate......................................................................................................................286
Comparison Predicates..................................................................................................................287
EXISTS Predicate............................................................................................................................291
IN Predicate...................................................................................................................................292
LIKE Predicate...............................................................................................................................294
NULL Predicate.............................................................................................................................296
Privileges.............................................................................................................................................301
Considerations...............................................................................................................................301
Schemas...............................................................................................................................................304
Search Condition.................................................................................................................................305
Subquery.............................................................................................................................................307
SELECT Form of a Subquery.........................................................................................................307
Synonyms............................................................................................................................................309
Tables...................................................................................................................................................310
Base Tables and Views...................................................................................................................310
Example of a Base Table.................................................................................................................310
Triggers................................................................................................................................................311
Views...................................................................................................................................................312
SQL Views......................................................................................................................................312
Example of a View.........................................................................................................................312
5 SQL Clauses...............................................................................................................313
DEFAULT Clause................................................................................................................................314
Examples of DEFAULT..................................................................................................................315
FORMAT Clause.................................................................................................................................316
Examples of FORMAT...................................................................................................................317
SAMPLE Clause..................................................................................................................................318
Considerations for SAMPLE..........................................................................................................319
Examples of SAMPLE....................................................................................................................320
SEQUENCE BY Clause.......................................................................................................................326
Table of Contents
9