Sql procedure | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Sql procedure

Hello guys. Need backup in creating sql procs. Can’t do something cuz it gives me a lot of errors.

18th May 2018, 8:47 PM
Стас Белич
8 Answers
+ 1
hard to answer without any Code.
21st May 2018, 5:18 PM
Tom Dooley
Tom Dooley - avatar
+ 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
21st May 2018, 10:07 PM
Ipang
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; ​
21st May 2018, 9:58 PM
Стас Белич
0
Idk what is wrong
21st May 2018, 9:58 PM
Стас Белич
0
It’s columns for outputting data
22nd May 2018, 4:22 AM
Стас Белич
0
Guys, I really need your help
25th May 2018, 7:56 AM
Стас Белич
0
As you said there are a lot of errors. What kind of errors?
25th May 2018, 10:14 AM
Tom Dooley
Tom Dooley - avatar
0
Such like pls00013
25th May 2018, 4:13 PM
Стас Белич