July 25, 2012

Feature Code 10: Sets reference in field value

  • The esProc fields can also be used to store several records or sets. The field of the primary table in database usually corresponds to several records in the sub tables. Therefore, with the object reference, esProc can easily represent the correlations between the primary table and the sub table.
  • As illustrated below, the primary table Department table has an Employee field. The Employee field of every record point to the several records of sub table Employee table.
  • The cell A4 retrieved a record from Department table. Then, the statements followed can use A4.Employee to access to the set of records in the corresponding sub table of this record.
  • A4.Employee.avg(Age) represents the summarization of Age field of this set.

Annotation  1

Annotation  2 

Annotation  3 

Annotation  4