sales persons should always receive commission of 100 at
least. employees who r not sales persons should never
receive commission.(Triggers)
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 |
Which nosql database is best?
How many postgresql users are there, worldwide?
why we use nocopy?
what is meant by urlencode and urldocode? : Sql dba
what is pragma ?
Does truncate remove indexes?
How do you exit in sql?
What is the difference between distinct and unique in sql?
What are the syntax and use of the coalesce function?
What is graph sql?
While inserting 10 rows using procedure, if 3rd entry is having some error, what will be the output? How u will handle that error?
What is set serveroutput on?