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 |
consider a table which contain 4 columns,ename,eno,sal and deptno, from this table i want to know ename who having maximum salary in deptno 10 and 20.
How do I view a view in sql?
How do I get sql certification?
What is time based sql injection?
What does := mean in pl sql?
display your age in months?
What is ON DELETE CASCADE?
What are different clauses used in sql?
What is rowtype?
What is implicit cursor in pl sql?
what is 'trigger' in sql? : Sql dba
how to drop an existing table in mysql? : Sql dba
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)