
Review of Rules for the LINK OPTIONAL Statement
LINKS and the LINK OPTIONAL Statement Rules
C–8
058057 Tandem Computers Incorporated
The preceding query specifications are effectively the same as the first query
specifications. These specifications contain illegal links because the WHERE clause
links order back to employee due to the transitive property of links.
The following query specifications violate rule 2:
OPEN employee, region;
OPEN employee1 AS COPY OF employee;
OPEN employee2 AS COPY OF employee;
LINK employee1 TO OPTIONAL region VIA regnum;
LINK employee2 TO OPTIONAL region VIA regnum;
LIST employee1.empname, employee.empname, regname;
A sketch of these links appears as follows:
employee1
region
employee2
The preceding query specifications violate rule 2 because region appears on the right
side of more than one LINK OPTIONAL statement.
The following query specifications violate rule 2 because both order and region appear
on the right side of two LINK OPTIONAL statements due to the transitive properties
of links:
OPEN employee, region, customer, order;
LINK employee TO OPTIONAL region VIA regnum;
LINK customer TO OPTIONAL order VIA custnum;
LINK order.salesman TO region.manager;
LIST empname, regname, custname;
Symbolically, these links appear as follows:
region
order
employee
customer
The links in the preceding query are illegal because the LINK statement specifies a
two-directional link between two record descriptions that appear on the right side of
LINK OPTIONAL statements.
Содержание ENFORM 058057
Страница 5: ...New and Changed Information iv 058057 Tandem Computers Incorporated This page left intentionally blank...
Страница 6: ...New and Changed Information 058057 Tandem Computers Incorporated v...
Страница 18: ...Preface xvi 058057 Tandem Computers Incorporated This page left intentionally blank...
Страница 19: ...Preface 058057 Tandem Computers Incorporated xvii...
Страница 21: ...Notation Conventions xviii 058057 Tandem Computers Incorporated This page left intentionally blank...
Страница 25: ...ENFORM Terminology Introduction 1 4 058057 Tandem Computers Incorporated This page left intentionally blank...
Страница 121: ...TITLE Statement Statements 4 50 058057 Tandem Computers Incorporated This page left intentionally blank...
Страница 227: ...ENFORM Procedures ENFORM Syntax Summary A 16 058057 Tandem Computers Incorporated This page left intentionally blank...
Страница 269: ...Glossary Glossary 4 058057 Tandem Computers Incorporated This page left intentionally blank...