Generating Unique Values: Examples |
Example 1: DOM_SEQUENCE is an integer domain with 'generate unique value' flag set, and DOM_STRING a string domain. TAB1(PK, COL) is a table with column PK defined on DOM_SEQUENCE with Key 1, and COL defined on DOM_STRING with Key NULL. TAB2(PK, COL) is the same table as TAB1, but COL is also a Key 1 Then:
Example 2: DOM_SEQUENCE_BIS is another integer domain with 'generate unique flag' set. TAB3(PK1, PK2, COL) with PK1 is defined on DOM_SEQUENCE with Key 1, PK2 defined on DOM_SEQUENCE_BIS with Key2, COL defined on DOM_STRING with Key NULL. TAB4(PK1, PK2, COL) with PK1 is defined on DOM_SEQUENCE with Key 1, PK2 defined on DOM_SEQUENCE with Key2, COL defined on DOM_STRING with Key NULL. TAB5(PK1, PK2, COL) with PK1 is defined on DOM_SEQUENCE with Key 1, PK2 defined on DOM_SEQUENCE_BIS with Key2, COL defined on DOM_STRING with Key2 Then:
|