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 |
How many developers work on postgresql?
What is NOCOPY?
Write the order of precedence for validation of a column in a table ?
How can you fetch common records from two tables?
What is a clob in sql?
How to create a view on a table which does not exists
Is mariadb nosql?
Does oracle roll back the transaction on an error?
Can you sum a count in sql?
What is execution plan in sql?
Why partition by is used in sql?
What are inbuilt functions in sql?
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)