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 |
What is date functions?
What is a relationship and what are they?
What is coalesce in sql?
what is sql profiler
How do I save a stored procedure?
What is left inner join in sql?
What are Global Temporary tables
Explain the purpose of %type and %rowtype data types?
What will be the output for the below Query Select 'High' from dual where null = null;
HOW TO TUNE ORACLE SQL QUERIES GIVE ME STEP BY SREP
What is difference between nchar and nvarchar?
If the base table structure is changed what will happen to join index????