Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What packages(if any) has oracle provided for use by developers?

5807


Are subqueries better than joins?

970


How to get each name only once from an employee table?

1111


Explain spool.

1176


What is the difference between join and natural join?

927


How do I run a pl sql procedure in sql developer?

968


What is a unique constraint?

1065


How long it takes to learn pl sql?

1010


Explain commit, rollback and savepoint.

993


how to enter binary numbers in sql statements? : Sql dba

968


Which tcp/ip port does sql server run on? How can it be changed? : Sql dba

997


What is meant by user defined function?

1048


What will you get by the cursor attribute sql%found?

961


What is row_number () in sql?

978


what are the types of join and explain each? : Sql dba

1036