Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Complete the following function Number_of_Dependents that has one input parameter called ssn that stores a SSN of some employee, and when called, it will return

Complete the following function Number_of_Dependents that has one input parameter called ssn that stores a SSN of some employee, and when called, it will return the number of dependents the employee has. For example, is the function receives the SSN 333445555, then the function returns 3: (4 points)

 

 Note:   Your function should work for any SSN passed to the function.     

 

 

create or replace function Number_of_Dependents(ssn CHAR) return INTEGER

AS

 

 

 

begin

 

 

 

 

 

 

 

 

 

end;

 

 

 

2- Write an anonymous block to test the above function using the SSN 333445555 or using any other SSN. Format the output like this assuming that the SSN used is 333445555: 

 

                 This employee has 3 dependent(s)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

Completed Function and Test Script 1 Completed Function CREATE OR REPLACE FUNCTION NumberofDependent... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Programming questions

Question

What is strategy and what is operations strategy?

Answered: 1 week ago

Question

Where does the person work?

Answered: 1 week ago