![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
(snip) SUMMARY By running the following at definition time [MAKE EMPLOYEE = {EMP# INT, LNAME CHAR, DOB DATE, SALARY INT}] [MAKE RICH_EMPLOYEE = EMPLOYEE WITH SALARY > 100000] [MAKE VIP_MEMBER = {RICH_EMPLOYEE}] I am defining 3 relations differently and applying operators while establishing a de facto foreign key between VIP_MEMBER and RICH_EMPLOYEE as well as RICH_EMPLOYEE and EMPLOYEE. *I use this de facto references to be able to write PRESENT2D [VIP_MEMBER WITH SALARY > 200000] *--> 2 implicit JOINS. What do you guys think. *I initially thought about using SET instead but I want to keep the idea of relation as a construct which is why I use the verb MAKE. *I am hoping the above example wil draw some constructive comments.. Regards... |
#3
| |||
| |||
|
|
(snip) SUMMARY By running the following at definition time [MAKE EMPLOYEE = {EMP# INT, LNAME CHAR, DOB DATE, SALARY INT}] [MAKE RICH_EMPLOYEE = EMPLOYEE WITH SALARY > 100000] [MAKE VIP_MEMBER = {RICH_EMPLOYEE}] I am defining 3 relations differently and applying operators while establishing a de facto foreign key between VIP_MEMBER and RICH_EMPLOYEE as well as RICH_EMPLOYEE and EMPLOYEE. *I use this de facto references to be able to write PRESENT2D [VIP_MEMBER WITH SALARY > 200000] *--> 2 implicit JOINS. What do you guys think. *I initially thought about using SET instead but I want to keep the idea of relation as a construct which is why I use the verb MAKE. *I am hoping the above example wil draw some constructive comments.. Regards... |
#4
| |||
| |||
|
|
(snip) SUMMARY By running the following at definition time [MAKE EMPLOYEE = {EMP# INT, LNAME CHAR, DOB DATE, SALARY INT}] [MAKE RICH_EMPLOYEE = EMPLOYEE WITH SALARY > 100000] [MAKE VIP_MEMBER = {RICH_EMPLOYEE}] I am defining 3 relations differently and applying operators while establishing a de facto foreign key between VIP_MEMBER and RICH_EMPLOYEE as well as RICH_EMPLOYEE and EMPLOYEE. *I use this de facto references to be able to write PRESENT2D [VIP_MEMBER WITH SALARY > 200000] *--> 2 implicit JOINS. What do you guys think. *I initially thought about using SET instead but I want to keep the idea of relation as a construct which is why I use the verb MAKE. *I am hoping the above example wil draw some constructive comments.. Regards... |
#5
| |||
| |||
|
|
(snip) SUMMARY By running the following at definition time [MAKE EMPLOYEE = {EMP# INT, LNAME CHAR, DOB DATE, SALARY INT}] [MAKE RICH_EMPLOYEE = EMPLOYEE WITH SALARY > 100000] [MAKE VIP_MEMBER = {RICH_EMPLOYEE}] I am defining 3 relations differently and applying operators while establishing a de facto foreign key between VIP_MEMBER and RICH_EMPLOYEE as well as RICH_EMPLOYEE and EMPLOYEE. *I use this de facto references to be able to write PRESENT2D [VIP_MEMBER WITH SALARY > 200000] *--> 2 implicit JOINS. What do you guys think. *I initially thought about using SET instead but I want to keep the idea of relation as a construct which is why I use the verb MAKE. *I am hoping the above example wil draw some constructive comments.. Regards... |
#6
| |||
| |||
|
|
(snip) SUMMARY By running the following at definition time [MAKE EMPLOYEE = {EMP# INT, LNAME CHAR, DOB DATE, SALARY INT}] [MAKE RICH_EMPLOYEE = EMPLOYEE WITH SALARY > 100000] [MAKE VIP_MEMBER = {RICH_EMPLOYEE}] I am defining 3 relations differently and applying operators while establishing a de facto foreign key between VIP_MEMBER and RICH_EMPLOYEE as well as RICH_EMPLOYEE and EMPLOYEE. *I use this de facto references to be able to write PRESENT2D [VIP_MEMBER WITH SALARY > 200000] *--> 2 implicit JOINS. What do you guys think. *I initially thought about using SET instead but I want to keep the idea of relation as a construct which is why I use the verb MAKE. *I am hoping the above example wil draw some constructive comments.. Regards... |
#7
| |||
| |||
|
|
(snip) SUMMARY By running the following at definition time [MAKE EMPLOYEE = {EMP# INT, LNAME CHAR, DOB DATE, SALARY INT}] [MAKE RICH_EMPLOYEE = EMPLOYEE WITH SALARY > 100000] [MAKE VIP_MEMBER = {RICH_EMPLOYEE}] I am defining 3 relations differently and applying operators while establishing a de facto foreign key between VIP_MEMBER and RICH_EMPLOYEE as well as RICH_EMPLOYEE and EMPLOYEE. *I use this de facto references to be able to write PRESENT2D [VIP_MEMBER WITH SALARY > 200000] *--> 2 implicit JOINS. What do you guys think. *I initially thought about using SET instead but I want to keep the idea of relation as a construct which is why I use the verb MAKE. *I am hoping the above example wil draw some constructive comments.. Regards... |
#8
| |||
| |||
|
|
(snip) SUMMARY By running the following at definition time [MAKE EMPLOYEE = {EMP# INT, LNAME CHAR, DOB DATE, SALARY INT}] [MAKE RICH_EMPLOYEE = EMPLOYEE WITH SALARY > 100000] [MAKE VIP_MEMBER = {RICH_EMPLOYEE}] I am defining 3 relations differently and applying operators while establishing a de facto foreign key between VIP_MEMBER and RICH_EMPLOYEE as well as RICH_EMPLOYEE and EMPLOYEE. *I use this de facto references to be able to write PRESENT2D [VIP_MEMBER WITH SALARY > 200000] *--> 2 implicit JOINS. What do you guys think. *I initially thought about using SET instead but I want to keep the idea of relation as a construct which is why I use the verb MAKE. *I am hoping the above example wil draw some constructive comments.. Regards... |
#9
| |||
| |||
|
|
(snip) SUMMARY By running the following at definition time [MAKE EMPLOYEE = {EMP# INT, LNAME CHAR, DOB DATE, SALARY INT}] [MAKE RICH_EMPLOYEE = EMPLOYEE WITH SALARY > 100000] [MAKE VIP_MEMBER = {RICH_EMPLOYEE}] I am defining 3 relations differently and applying operators while establishing a de facto foreign key between VIP_MEMBER and RICH_EMPLOYEE as well as RICH_EMPLOYEE and EMPLOYEE. *I use this de facto references to be able to write PRESENT2D [VIP_MEMBER WITH SALARY > 200000] *--> 2 implicit JOINS. What do you guys think. *I initially thought about using SET instead but I want to keep the idea of relation as a construct which is why I use the verb MAKE. *I am hoping the above example wil draw some constructive comments.. Regards... |
#10
| |||
| |||
|
|
(snip) SUMMARY By running the following at definition time [MAKE EMPLOYEE = {EMP# INT, LNAME CHAR, DOB DATE, SALARY INT}] [MAKE RICH_EMPLOYEE = EMPLOYEE WITH SALARY > 100000] [MAKE VIP_MEMBER = {RICH_EMPLOYEE}] I am defining 3 relations differently and applying operators while establishing a de facto foreign key between VIP_MEMBER and RICH_EMPLOYEE as well as RICH_EMPLOYEE and EMPLOYEE. *I use this de facto references to be able to write PRESENT2D [VIP_MEMBER WITH SALARY > 200000] *--> 2 implicit JOINS. What do you guys think. *I initially thought about using SET instead but I want to keep the idea of relation as a construct which is why I use the verb MAKE. *I am hoping the above example wil draw some constructive comments.. Regards... |
![]() |
| Thread Tools | |
| Display Modes | |
| |