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


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

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

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

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


desc
@@


1.4
log
@changed to rewrite
@
text
@/* 
 * we can also use rule to handle view updates.
 * For example, to handle insertion to toyemp we can define the rule:
 */
define rewrite rule toyemp_app is
on append to toyemp do instead
append emp(name = new.name, age = new.age, location = new.location,
	dept = "toy", salary = new.annualsal/12)
\p
@


1.3
log
@Oops!  Jumbled around checkin rather massively!
@
text
@d5 1
a5 1
define rule toyemp_app is
@


1.2
log
@demo shuffling
@
text
@d1 8
a8 2
/* and here's the "plus delta" */
retrieve (emp1_added.all)
a9 5
\g
/* here's the "minus delta" */
retrieve (emp1_del.all)
\p
\g
@


1.1
log
@Initial revision
@
text
@d1 2
a2 5
/*
 * this is supposed to blow -- for illustration only
 */
replace city (residents = my_function (arg1, ..., arg_n))
where city.name = "berkeley"
d4 5
a8 1
\r
@
