SlideShare a Scribd company logo
2
Most read
Function & Procedure ×
Shani Tiwari - 1039
Devendrakumar Mali - 1003
• CREATE OR REPLACE FUNCTION Function_name(PARAMETERS)
• CREATE OR REPLACE PROCEDURE Procedure_name(PARAMETERS)
RETURN
IN
OUT
Why Functions & Procedures are
Important
• Reusability: Write once, use many times.
• Modularity: Break code into smaller.
• Efficiency: Reduce redundancy.
Functions & Procedures Make Programming Easy With :-
What is Function?
The "Returning Hero"
Reusable blocks of code that
can be used to perform specific
tasks
A block of code that returns
a value.
What is Procedure?
The "Task Masters"
block of code that performs an
action but doesn’t return a
value.
specific set of actions or
logic.
CREATE
PROCEDURE
procedure_name
(parameters) IS
BEGIN
-- Logic
END;
IN
OUT
It is return value
When We Use?
It perform specific task like
inserting updating & deleting
Used for tasks like inserting
data, updating records, etc.
Used for calculations or
operations that produce a
result.
Function Procedure
Calculate total salary,
convert currency, etc.
Insert employee data,
update salary, etc.
FUNCTION
PROCEDURE
Thank
You!

More Related Content

PPTX
Functions
biplob04
 
PPTX
Procedure and Functions in pl/sql
Ñirmal Tatiwal
 
PPTX
Function & procedure
atishupadhyay
 
PDF
SQL Procedures & Functions
JeevananthamArumugam
 
PPTX
Presentation of computer
SabinDhakal13
 
PDF
Algorithm and Data Structure - Modular Programming
AndiNurkholis1
 
PPTX
Using general sub procedures
Danica Denice Epino
 
PPTX
DBMS: Week 11 - Stored Procedures and Functions
RashidFaridChishti
 
Functions
biplob04
 
Procedure and Functions in pl/sql
Ñirmal Tatiwal
 
Function & procedure
atishupadhyay
 
SQL Procedures & Functions
JeevananthamArumugam
 
Presentation of computer
SabinDhakal13
 
Algorithm and Data Structure - Modular Programming
AndiNurkholis1
 
Using general sub procedures
Danica Denice Epino
 
DBMS: Week 11 - Stored Procedures and Functions
RashidFaridChishti
 

Similar to Function & Procedure: Function Vs Procedure in PL/SQL (20)

PDF
Unit iii vb_study_materials
gayaramesh
 
PDF
Programming with Microsoft Visual Basic 2015 7th Edition Zak Solutions Manual
ltxyeajwyz1288
 
PPTX
Modularisation techniques new
Jeet Thombare
 
PPS
Procedures functions structures in VB.Net
tjunicornfx
 
PPTX
10 Functions.pptx DSDFDFDFDFDFDFDFDFFDFDFD
RuzelAmpoan1
 
PDF
Lecture Notes Unit5 chapter17 Stored procedures and functions
Murugan146644
 
PPTX
Modular programming
BeebashPokhrel
 
TXT
Sql procedures
Gaurish Goel
 
PPTX
Function
Saniati
 
PPTX
Chapter 6 slides
jdpike
 
PPTX
Sql Functions And Procedures
DataminingTools Inc
 
PPTX
MS SQL SERVER: Sql Functions And Procedures
sqlserver content
 
PPTX
MS SQLSERVER:Sql Functions And Procedures
sqlserver content
 
PPTX
Modular programming
bhuwanbist1
 
PPTX
9. DBMS Experiment Laboratory PresentationPPT
TheVerse1
 
PPT
Module04
Sridhar P
 
DOCX
Functions assignment
Ahmad Kamal
 
PPTX
Lecture 3.2_Subprogrammm - Function.pptx
pproychd
 
PDF
PSPC-UNIT-4.pdf
ArshiniGubbala3
 
PPT
FUNCTIONS IN c++ PPT
03062679929
 
Unit iii vb_study_materials
gayaramesh
 
Programming with Microsoft Visual Basic 2015 7th Edition Zak Solutions Manual
ltxyeajwyz1288
 
Modularisation techniques new
Jeet Thombare
 
Procedures functions structures in VB.Net
tjunicornfx
 
10 Functions.pptx DSDFDFDFDFDFDFDFDFFDFDFD
RuzelAmpoan1
 
Lecture Notes Unit5 chapter17 Stored procedures and functions
Murugan146644
 
Modular programming
BeebashPokhrel
 
Sql procedures
Gaurish Goel
 
Function
Saniati
 
Chapter 6 slides
jdpike
 
Sql Functions And Procedures
DataminingTools Inc
 
MS SQL SERVER: Sql Functions And Procedures
sqlserver content
 
MS SQLSERVER:Sql Functions And Procedures
sqlserver content
 
Modular programming
bhuwanbist1
 
9. DBMS Experiment Laboratory PresentationPPT
TheVerse1
 
Module04
Sridhar P
 
Functions assignment
Ahmad Kamal
 
Lecture 3.2_Subprogrammm - Function.pptx
pproychd
 
PSPC-UNIT-4.pdf
ArshiniGubbala3
 
FUNCTIONS IN c++ PPT
03062679929
 
Ad

Recently uploaded (20)

PDF
Build Multi-agent using Agent Development Kit
FadyIbrahim23
 
PPTX
Odoo Integration Services by Candidroot Solutions
CandidRoot Solutions Private Limited
 
PDF
How to Seamlessly Integrate Salesforce Data Cloud with Marketing Cloud.pdf
NSIQINFOTECH
 
PDF
Jenkins: An open-source automation server powering CI/CD Automation
SaikatBasu37
 
PDF
Multi-factor Authentication (MFA) requirement for Microsoft 365 Admin Center_...
Q-Advise
 
PDF
advancepresentationskillshdhdhhdhdhdhhfhf
jasmenrojas249
 
PDF
lesson-2-rules-of-netiquette.pdf.bshhsjdj
jasmenrojas249
 
PDF
Protecting the Digital World Cyber Securit
dnthakkar16
 
PPTX
TestNG for Java Testing and Automation testing
ssuser0213cb
 
PPTX
Presentation about variables and constant.pptx
kr2589474
 
PDF
IEEE-CS Tech Predictions, SWEBOK and Quantum Software: Towards Q-SWEBOK
Hironori Washizaki
 
PPTX
Maximizing Revenue with Marketo Measure: A Deep Dive into Multi-Touch Attribu...
bbedford2
 
PDF
Exploring AI Agents in Process Industries
amoreira6
 
PDF
Community & News Update Q2 Meet Up 2025
VictoriaMetrics
 
PDF
ShowUs: Pharo Stream Deck (ESUG 2025, Gdansk)
ESUG
 
PPTX
Explanation about Structures in C language.pptx
Veeral Rathod
 
PDF
Why Use Open Source Reporting Tools for Business Intelligence.pdf
Varsha Nayak
 
PDF
What to consider before purchasing Microsoft 365 Business Premium_PDF.pdf
Q-Advise
 
PPTX
The-Dawn-of-AI-Reshaping-Our-World.pptxx
parthbhanushali307
 
PPTX
Visualising Data with Scatterplots in IBM SPSS Statistics.pptx
Version 1 Analytics
 
Build Multi-agent using Agent Development Kit
FadyIbrahim23
 
Odoo Integration Services by Candidroot Solutions
CandidRoot Solutions Private Limited
 
How to Seamlessly Integrate Salesforce Data Cloud with Marketing Cloud.pdf
NSIQINFOTECH
 
Jenkins: An open-source automation server powering CI/CD Automation
SaikatBasu37
 
Multi-factor Authentication (MFA) requirement for Microsoft 365 Admin Center_...
Q-Advise
 
advancepresentationskillshdhdhhdhdhdhhfhf
jasmenrojas249
 
lesson-2-rules-of-netiquette.pdf.bshhsjdj
jasmenrojas249
 
Protecting the Digital World Cyber Securit
dnthakkar16
 
TestNG for Java Testing and Automation testing
ssuser0213cb
 
Presentation about variables and constant.pptx
kr2589474
 
IEEE-CS Tech Predictions, SWEBOK and Quantum Software: Towards Q-SWEBOK
Hironori Washizaki
 
Maximizing Revenue with Marketo Measure: A Deep Dive into Multi-Touch Attribu...
bbedford2
 
Exploring AI Agents in Process Industries
amoreira6
 
Community & News Update Q2 Meet Up 2025
VictoriaMetrics
 
ShowUs: Pharo Stream Deck (ESUG 2025, Gdansk)
ESUG
 
Explanation about Structures in C language.pptx
Veeral Rathod
 
Why Use Open Source Reporting Tools for Business Intelligence.pdf
Varsha Nayak
 
What to consider before purchasing Microsoft 365 Business Premium_PDF.pdf
Q-Advise
 
The-Dawn-of-AI-Reshaping-Our-World.pptxx
parthbhanushali307
 
Visualising Data with Scatterplots in IBM SPSS Statistics.pptx
Version 1 Analytics
 
Ad

Function & Procedure: Function Vs Procedure in PL/SQL

  • 2. Shani Tiwari - 1039 Devendrakumar Mali - 1003 • CREATE OR REPLACE FUNCTION Function_name(PARAMETERS) • CREATE OR REPLACE PROCEDURE Procedure_name(PARAMETERS) RETURN IN OUT
  • 3. Why Functions & Procedures are Important • Reusability: Write once, use many times. • Modularity: Break code into smaller. • Efficiency: Reduce redundancy. Functions & Procedures Make Programming Easy With :-
  • 4. What is Function? The "Returning Hero" Reusable blocks of code that can be used to perform specific tasks A block of code that returns a value.
  • 5. What is Procedure? The "Task Masters" block of code that performs an action but doesn’t return a value. specific set of actions or logic. CREATE PROCEDURE procedure_name (parameters) IS BEGIN -- Logic END; IN OUT
  • 6. It is return value When We Use? It perform specific task like inserting updating & deleting Used for tasks like inserting data, updating records, etc. Used for calculations or operations that produce a result. Function Procedure Calculate total salary, convert currency, etc. Insert employee data, update salary, etc. FUNCTION PROCEDURE