/* 
 * 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
