Computed Columns Example

A computed column is defined by an expression. You can build the expression by combining regular columns in the same row. Expressions may contain functions, arithmetic operators, case expressions, other columns from the same table, global variables, Java objects, and path expressions.

In the example below:
create table parts_table
  (part_no Part.Part_No, name char(30),
  descr text, spec image, listPrice money,
      quantity int,
   name_order compute name_order(part_no)
   version_order compute part_no version,
   descr_index compute des_index(descr), 
   spec_index compute xml_index(spec)
   total_cost compute quantity*listPrice
)