+ 2
Sql procedure
Hello guys. Need backup in creating sql procs. Can’t do something cuz it gives me a lot of errors.
8 Answers
+ 1
hard to answer without any Code.
+ 2
I'm not familiar with Oracle SQL and can't verify this, but I guess you can start by replacing the 'IS' on line 3 and 7 with 'AS'. What are r_estate and p_estate by the way?
(Edit)
IS is a valid keyword in Oracle SQL
0
create or replace PROCEDURE sum_tax
IS
begin
declare
cursor sum_cursor
is
SELECT tax_on_real_estate.payment, tax_on_personal_estate.payment, tax_on_real_estate.code_number, tax_on_real_estate.amount + tax_on_personal_estate.amount
FROM tax_on_real_estate, tax_on_personal_estate
WHERE tax_on_real_estate.code_number = tax_on_personal_estate.code_number;
open sum_cursor;
dbms_output.put_line (r_estate ||' '||p_estate);
close sum_cursor;
end sum_tax;
0
Idk what is wrong
0
It’s columns for outputting data
0
Guys, I really need your help
0
As you said there are a lot of errors. What kind of errors?
0
Such like pls00013