What is the difference between execution of triggers and stored procedures?
Answer / Shobhit Rastogi
Stored Procedures are user-defined program units, which can contain SQL statements, PL/SQL blocks or other procedural code. They can be called explicitly by the application when needed. On the other hand, Triggers are automatically executed by the database server in response to specific events such as INSERT, UPDATE or DELETE on a table or view. Stored Procedures run at a user's request, while Triggers run in response to database actions.
| Is This Answer Correct ? | 0 Yes | 0 No |
Q1.all the depts which has more then 10 empls? Q2.all the dept which does not have any emply? Q3 all the emp which does not have any dept? Q4 get all the emply detais with the dept details it dept is exit otherwise any emp details? Q5 how to debugg the dynamic sql and packages?
What are the events on which a database trigger can be based?
Is it possible to update views?
Why stored procedure is better than query?
Source is Sales Table: Sno Prod Sales Sales_Amount 1 A 10 2000 2 A 20 1000 3 C 10 3000 4 D 30 4000 5 A 20 1000 Target : Sales_Count T_Sales_Amt Sales_Count(A) T_Sales_Amt(A) 90 11000 50 4000 In single query, pls tell me.
What is a sql instance vs database?
how can we submit a form without a submit button? : Sql dba
What is online transaction processing (oltp)?
What is informix sql?
What is a join?
What is acid property in a database?
How to find string or key value using pl/sql code?
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)