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

How many developers work on postgresql?

0 Answers  


What is NOCOPY?

6 Answers   DELL,


Write the order of precedence for validation of a column in a table ?

2 Answers  


How can you fetch common records from two tables?

0 Answers  


What is a clob in sql?

0 Answers  


How to create a view on a table which does not exists

4 Answers   Oracle, TCS,


Is mariadb nosql?

0 Answers  


Does oracle roll back the transaction on an error?

0 Answers  


Can you sum a count in sql?

0 Answers  


What is execution plan in sql?

0 Answers  


Why partition by is used in sql?

0 Answers  


What are inbuilt functions in sql?

0 Answers  


Categories