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...


sales persons should always receive commission of 100 at
least. employees who r not sales persons should never
receive commission.(Triggers)



sales persons should always receive commission of 100 at least. employees who r not sales persons ..

Answer / narenkumar reddy

create or replace
trigger trigger_name
before update on emp
for each row
begin
if job<>'salesman' then
raise_application_error(-20001,'should never receive the
commission')
end if;
end;

Is This Answer Correct ?    6 Yes 13 No

Post New Answer

More SQL PLSQL Interview Questions

What are functions in sql?

0 Answers  


What is localdb mssqllocaldb?

0 Answers  


How many triggers can be applied to a table?

0 Answers  


Why we use stored procedure instead of query?

0 Answers  


What is the usage of the distinct keyword?

0 Answers  


What schema means?

0 Answers  


What is sharding in sql?

0 Answers  


What is pl/sql and what is it used for?

4 Answers  


Which join condition can be specified using on clause?

0 Answers  


How many types of primary keys are there?

0 Answers  


Are subqueries faster than joins?

0 Answers  


What is the basic form of sql query?

0 Answers  


Categories