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 are functions in sql?
What is localdb mssqllocaldb?
How many triggers can be applied to a table?
Why we use stored procedure instead of query?
What is the usage of the distinct keyword?
What schema means?
What is sharding in sql?
What is pl/sql and what is it used for?
Which join condition can be specified using on clause?
How many types of primary keys are there?
Are subqueries faster than joins?
What is the basic form of sql query?
Oracle (3253)
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)