Question 7 Writes a PL/SQL function that calculates the factorial of a number passed as a parameter. The Factorial of a number n is defined as - 0! = 1 %3D n! = n*(n-1)*(n-2)*(n-3)... 1 for n> 0

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter8: Restricting Rows And Sorting Data
Section: Chapter Questions
Problem 1RQ
icon
Related questions
Question
Question 7
Writes a PL/SQL function that calculates the factorial of a number passed as a parameter.
The Factorial of a number n is defined as -
O! = 1
n! = n*(n-1)*(n-2)*(n-3)... 1 for n>0
Transcribed Image Text:Question 7 Writes a PL/SQL function that calculates the factorial of a number passed as a parameter. The Factorial of a number n is defined as - O! = 1 n! = n*(n-1)*(n-2)*(n-3)... 1 for n>0
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Table
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr