What are the difference between Functions/Stored Procs and
Triggers and where are they used.
Answer / barun
Function-1.function used for calculation perpose.it must
return value.(call by pl/sql code block,by sql query)
Procedure-it is used to implement business logic.it may or
not return value.it pre compile and stored in server data
base.so it is faster.(call by pl/sql code block_
trigger-it is used to implement business logic and maintain
intigrity.it cant take any para-meter like fun or
procedure.it is automatically fired(implicitely)
Is This Answer Correct ? | 8 Yes | 0 No |
How many types of sql are there?
What is the difference between anonymous block and named blocks?
What is recursive join in sql?
What are sql injection vulnerabilities?
If records are inserted into table without committing.How to refer to these values in a procedure?
What is a field in a database?
What is indexing in sql and its types?
First round ------------------- - Procedure - Packages - Views - Virtual tables - Can we use dcl with in function? - Joins and few scenarios - Triggers and its type - Pragma, type and its functionality - How to create db link in oracle - Materialized view - How to find duplicate values from table? - Cursor and its functionality - Write a script to display friday and its date from a entire year. - Exception Handling Second round ------------------------ Gave a scenario like. Need to write a function to perform. When user try to change a password. It must not be last five password and a given password can be combination of characters, symbols, upper and lower case.
how to convert character strings to dates? : Sql dba
What is sql injection owasp?
What is dml with example?
how can we know the number of days between two given dates using mysql? : Sql dba