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)

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Why we use stored procedure instead of query?

953


Is sql a case sensitive language?

894


what is a tablespace? : Sql dba

1007


What are user defined functions?

951


What is the primary key?

880


What is multiple columns?

1004


Is left join same as inner join?

1023


What is trigger types of trigger?

997


When are we going to use truncate and delete?

932


Is sql a microsoft product?

899


how to install mysql? : Sql dba

1048


What is restrict in sql?

1039


What is nosql example?

971


How do I find duplicates in the same column?

1001


What is a sql profiler?

965