I have a type called budget defined as
create type budget as object (
year number,
amount number,
member function left_over (year in number) return number
)
Body:
create type body budget as
member function left_over(year in number) return number is
begin
return amount;
end left_over;
end;
And an object table
create table budget_table of budget;
How do I use the member function to return the amount? Something like:
select b.left_over(2010) from budget_table b;
Thanks