head     1.4;
branch   ;
access   ;
symbols  ;
locks    ; strict;
comment  @# @;


1.4
date     91.08.17.01.22.25;  author kemnitz;  state Exp;
branches ;
next     1.3;

1.3
date     91.03.19.16.29.43;  author kemnitz;  state Exp;
branches ;
next     1.2;

1.2
date     91.03.19.15.51.47;  author kemnitz;  state Exp;
branches ;
next     1.1;

1.1
date     91.03.19.00.24.41;  author kemnitz;  state Exp;
branches ;
next     ;


desc
@@


1.4
log
@made it a rewrite rule
@
text
@/* 
 * the view definition is equivalent to the following commands:
 */
create toyemp2(name = char16, age = int4, location = point, annualsal = int4)
\g
define rewrite rule toyemp2_ret is
on retrieve to toyemp2 do instead
retrieve(emp.name, emp.age, emp.location, annualsal = 12*emp.salary)
where emp.dept = "toy"
\g
@


1.3
log
@Oops!  Jumbled around checkin rather massively!
@
text
@d6 1
a6 1
define rule toyemp2_ret is
@


1.2
log
@demo shuffling
@
text
@d1 10
a10 3
/* here's what the version looks like */
retrieve (emp1.all)
\p
@


1.1
log
@Initial revision
@
text
@d1 2
a2 6
define rewrite rule example_2 is
on retrieve to emp.manager
do instead
retrieve (e.all) from e in emp 
where e.name = dept.mgrname
and dept.dname = current.dept
@
