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
What is execution plan in sql?
What port does sql server use?
Which function is used to return remainder in a division operator in sql?
Is sql dba a good career? : SQL DBA
What is trigger explain it?
how to convert character strings to dates? : Sql dba
What is the difference between the sql*loader and import utilities? : aql loader
Is pl sql different from sql?
What is the use of <> sql?
What is not in sql?
Is primary key clustered or nonclustered?
How do I save a stored procedure?
How insert into statements in sql?
What is the purpose of a sql?
How do I view a procedure in sql?