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 |
How many commands are there in sql?
What are dml commands?
What is trigger in sql? Explain
What are triggers and its uses?
Easy way to convert tableau "IF - ELSEIF" statements to Netezza "CASE" statements.
What are the steps for performance tuning.
Can we join 3 tables in sql?
In a package if we have 10 procedures or functions,How to know which will execute first?
what are aggregate and scalar functions? : Sql dba
What is a database trigger ? Name some usages of database trigger ?
What are expressions?
What do you mean by table in sql?