what is wrong?
mysql> create table price( -> p_code char(1) not null, -> p_description varchar(20), -> p_rentfee decimal(2,2) not nul
p_code should be a primary key in your price table:
p_code
price
create table price( -> p_code char(1) not null, -> p_description varchar(20), -> p_rentfee decimal(2,2) not null, -> p_dylatefee decimal(2,2), -> PRIMARY KEY ( p_code ));