Answer Posted / kishore
yes........
create or replace trigger emp_biu
before insert or update on employee
referencing new as new old as old
for each row
begin
if nvl(:new.salary,0) >= 10000 then
raise_application_error (-20999,'Salary with
commissions should be less than 10000');
end if;
end;
/
| Is This Answer Correct ? | 15 Yes | 0 No |
Post New Answer View All Answers
How to use sql statements in pl/sql?
Why truncate is used in sql?
why does the selected column have to be in the group by clause or part of an aggregate function? : Sql dba
How do you remove duplicates without using distinct in sql?
What is package in pl sql with an examples?
Explain the update statement in sql
How to run sql functions in pl/sql?
Do stored procedures prevent sql injection?
The in operator may be used if you know the exact value you want to return for at least one of the columns.
How does sql*loader handles newline characters in a record? : aql loader
what are the different tables present in mysql, which type of table is generated when we are creating a table in the following syntax: create table employee (eno int(2),ename varchar(10)) ? : Sql dba
How do you pronounce sql?
Explain what is a field in a database and record in a database?
What action do you have to perform before retrieving data from the next result set of a stored procedure ?
What is the purpose of the partition table?