Explain the difference between a procedure and a function? What do you understand by those terms?



Explain the difference between a procedure and a function? What do you understand by those terms?..

Answer / Manoj Kumar Ram

"Procedures and functions are SQL objects used to encapsulate code reusability in Oracle. The main difference lies in their return values: Functions return a single value, while procedures don't have a return value. Both can accept input parameters but differ in usage: Functions are typically used for calculations and validation, while procedures are used for performing tasks or operations."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Oracle General Interview Questions

How would you go about verifying the network name that the local_listener is currently using?

1 Answers  


What is indexing, and how does it improve performance?

1 Answers  


What is an Index ? How it is implemented in Oracle Database ?

4 Answers  


What is a sub query? Describe its types?

1 Answers  


5. Display full details from the ORDER_LINE table where the item number is (first condition) between 1 and 200 (no > or < operators) OR the item number is greater than 1000 AND (second condition) the item cost is not in the list 1000, 2000, 3000 OR the order number is not equal to 1000.

3 Answers   Wipro,


What is index in Oracle?

1 Answers   MCN Solutions,


Hi, I want table structure shown below. How can i create this ? Num Name Address Addr1 Addr2 I want Addr1 and Addr2 under Address column. How can i achive this ? Is it possible ?

2 Answers   IBM,


what is dynamic SGA and static SGA

1 Answers   Oracle,


Define Normalization with example?

1 Answers  


Can you create a synonym without having a table?

1 Answers  


what is unique key?

14 Answers   Amazon, Cap Gemini, Infosys, Wipro,


sql query to get zero records from a table

7 Answers   CTS,


Categories
  • Oracle General Interview Questions Oracle General (1803)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)