Give an example of any procedure.
Answer Posted / dev lamani
create or replace procedure Data_Ho(region number,proc
number) is
Data_Not_there exception;
cnt number;
Begin
select count(*) into cnt
from vhub.op_fertilizer_sta_tran
where proc_monyr=proc and region_code=region;
if cnt>=0 then
insert into op_fertilizer_sta
select * from op_fertilizer_sta_tran
where proc_monyr=proc and region_code=region;
else
raise Data_not_there;
end if;
exception
when Data_not_there then
dbms_output.putline('There is no Data Available for this
month for Insertion'|| ' ' || proc);
End;
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
What is the use of function in sql?
What is crud sql?
What is the use of index in hive?
how do you login to mysql using unix shell? : Sql dba
Explain what is a view?
What is a left join?
How would you pass hints to the sql processor?
What is multiple columns?
What is the size of partition table?
What are all the ddl commands?
Is it possible to link two groups inside a cross products after the cross products group has been created?
what are local and global variables and their differences? : Sql dba
What is the difference between delete, truncate and drop command?
What is the difference between a primary key and a unique key?
Can we create clustered index without primary key?