What affects the deterministic property?  Examples

Chapter 8: Creating Databases and Tables

How does the deterministic property affect computed columns?

There are two types of computed columns in Adaptive Server:

The main difference between these two types of computed columns is that when a virtual computed column is referenced by a query, it is evaluated each time a query accesses it.

A materialized computed column’s result is stored in the table when a data row is inserted, or when any base columns are updated. When a materialized computed column is referenced in a query, it is not reevaluated. Its preevaluated result is used.





Copyright © 2005. Sybase Inc. All rights reserved. Examples

View this book as PDF