In the short term, take a look at divide.src in stanczyk:
# This example is taken from STA90
# Example 4.7 (Page 77)
# Divide! Internally, without having to hack files!
#
a1=(lc) product (q)
a2=project (a1) (lecturer,subject)
rename (a2.subject) (course)
a3=(a2) intersect (lc)
a4=project (a3)(lecturer)
print a4
or te_div.src in date:
# Script from Date to demonstrate division - Third example
cdiv1=(dend) product (dor1)
cdiv2=project (cdiv1) (s#,dor1.p#)
rename (cdiv2.dor1.p#) (p#)
cdiv3=(cdiv2) intersect (dend)
cdiv4=project (cdiv3)(s#)
print cdiv4
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=7704
In the short term, take a look at divide.src in stanczyk:
# This example is taken from STA90
# Example 4.7 (Page 77)
# Divide! Internally, without having to hack files!
#
a1=(lc) product (q)
a2=project (a1) (lecturer,subject)
rename (a2.subject) (course)
a3=(a2) intersect (lc)
a4=project (a3)(lecturer)
print a4
or te_div.src in date:
# Script from Date to demonstrate division - Third example
cdiv1=(dend) product (dor1)
cdiv2=project (cdiv1) (s#,dor1.p#)
rename (cdiv2.dor1.p#) (p#)
cdiv3=(cdiv2) intersect (dend)
cdiv4=project (cdiv3)(s#)
print cdiv4