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

Is sqlite thread safe?

1102


Why truncate is used in sql?

1044


What is the need of merge statement?

1092


Explain the purpose of %type and %rowtype data types with the example?

1047


What is cascade in sql?

1017


What is %type in sql?

1020


what are the maximum number of rows that can be constructed by inserting rows directly in value list? : Transact sql

1008


Why use subqueries instead of joins?

1138


what is sp_pkeys? : Transact sql

1206


How many types of sql are there?

1047


Explain mutating table error.

1264


What is date functions?

1092


What are different types of statements supported by sql?

1211


Write an sql query to select all records from the table?

1081


what are the different functions in sorting an array? : Sql dba

1067