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 the difference between delete and truncate commands?
Why are sql stored procedures used?
what are the advantages of primary key over unique+notnull
7 Answers Consultancy, LGS, Oracle,
What is a primary key called that is made up of more than one field?
Why do you partition data?
Can you join a table to itself?
What is materialised View?
What is a mutating table
What is difference between joins and union?
What is native sql query?
what is sql in mysql? : Sql dba
IF EMP HAS 2 ROWS,DEPT HAS 4 ROWS.WHATS THE RESULT OF SELECT * FROM EMP,DEPT;