Postgres Stored ProceduresA better function to convert dollars to eurosReally shouldn't hardwire the conversion rate. Revised schema
create table account(
account_id int not null primary key,
account_number varchar not null,
account_type varchar not null,
balance numeric(10, 2) not null
);
|