PPT Slide
Example: SQL3 Row Types (plus Sets...)
- Employees are people, so ...
job_description Varchar(100),
projects set(ref(Project)
create table IBM_Emps of Emp_t
method age( ) returns Integer language SQL;
create method age( ) for Person_t
return year(current date) - year(birthdate);
create table IBM_People of Person_t (ref is self);
(**Note: this is approximate SQL3 syntax)