SlideShare a Scribd company logo
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

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
 

Recently uploaded (20)

PDF
Dipole Tech Innovations – Global IT Solutions for Business Growth
dipoletechi3
 
PDF
Best Web development company in india 2025
Greenusys
 
PDF
AOMEI Partition Assistant Crack 10.8.2 + WinPE Free Downlaod New Version 2025
bashirkhan333g
 
PDF
Ready Layer One: Intro to the Model Context Protocol
mmckenna1
 
PDF
Technical-Careers-Roadmap-in-Software-Market.pdf
Hussein Ali
 
PDF
AI + DevOps = Smart Automation with devseccops.ai.pdf
Devseccops.ai
 
PPTX
Agentic Automation: Build & Deploy Your First UiPath Agent
klpathrudu
 
PPTX
Milwaukee Marketo User Group - Summer Road Trip: Mapping and Personalizing Yo...
bbedford2
 
PPTX
iaas vs paas vs saas :choosing your cloud strategy
CloudlayaTechnology
 
PDF
TheFutureIsDynamic-BoxLang witch Luis Majano.pdf
Ortus Solutions, Corp
 
PDF
Salesforce Experience Cloud Consultant.pdf
VALiNTRY360
 
PPTX
Prompt Like a Pro. Leveraging Salesforce Data to Power AI Workflows.pptx
Dele Amefo
 
PDF
ERP Consulting Services and Solutions by Contetra Pvt Ltd
jayjani123
 
PDF
NPD Software -Omnex systems
omnex systems
 
PPTX
From spreadsheets and delays to real-time control
SatishKumar2651
 
PDF
Why is partnering with a SaaS development company crucial for enterprise succ...
Nextbrain Technologies
 
PPTX
AEM User Group: India Chapter Kickoff Meeting
jennaf3
 
PDF
Simplify React app login with asgardeo-sdk
vaibhav289687
 
PPTX
Comprehensive Risk Assessment Module for Smarter Risk Management
EHA Soft Solutions
 
PDF
IDM Crack with Internet Download Manager 6.42 Build 43 with Patch Latest 2025
bashirkhan333g
 
Dipole Tech Innovations – Global IT Solutions for Business Growth
dipoletechi3
 
Best Web development company in india 2025
Greenusys
 
AOMEI Partition Assistant Crack 10.8.2 + WinPE Free Downlaod New Version 2025
bashirkhan333g
 
Ready Layer One: Intro to the Model Context Protocol
mmckenna1
 
Technical-Careers-Roadmap-in-Software-Market.pdf
Hussein Ali
 
AI + DevOps = Smart Automation with devseccops.ai.pdf
Devseccops.ai
 
Agentic Automation: Build & Deploy Your First UiPath Agent
klpathrudu
 
Milwaukee Marketo User Group - Summer Road Trip: Mapping and Personalizing Yo...
bbedford2
 
iaas vs paas vs saas :choosing your cloud strategy
CloudlayaTechnology
 
TheFutureIsDynamic-BoxLang witch Luis Majano.pdf
Ortus Solutions, Corp
 
Salesforce Experience Cloud Consultant.pdf
VALiNTRY360
 
Prompt Like a Pro. Leveraging Salesforce Data to Power AI Workflows.pptx
Dele Amefo
 
ERP Consulting Services and Solutions by Contetra Pvt Ltd
jayjani123
 
NPD Software -Omnex systems
omnex systems
 
From spreadsheets and delays to real-time control
SatishKumar2651
 
Why is partnering with a SaaS development company crucial for enterprise succ...
Nextbrain Technologies
 
AEM User Group: India Chapter Kickoff Meeting
jennaf3
 
Simplify React app login with asgardeo-sdk
vaibhav289687
 
Comprehensive Risk Assessment Module for Smarter Risk Management
EHA Soft Solutions
 
IDM Crack with Internet Download Manager 6.42 Build 43 with Patch Latest 2025
bashirkhan333g
 
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