Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create function called getEmpLastName that takes as parameter employee id value and returns employee's last name. Remember to put exception toward the very end of

Create function called getEmpLastName that takes as parameter employee id value and returns employee's last name. Remember to put exception toward the very end of the function.

Template:

CREATE OR REPLACE FUNCTION getEmpLastName ( parameters )

RETURN datatype IS

variables; (Optional)

BEGIN

code;

RETURN expression;

EXCEPTION

WHEN OTHERS THEN

RETURN 'NO EMPLOYEE FOUND';

END;

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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_2

Step: 3

blur-text-image_3

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

Fundamentals of Financial Accounting

Authors: Fred Phillips, Robert Libby, Patricia Libby

5th edition

78025915, 978-1259115400, 1259115402, 978-0078025914

More Books

Students also viewed these Databases questions

Question

What are the differences between common stock and preferred stock?

Answered: 1 week ago

Question

What are some key differences between leaders and managers?

Answered: 1 week ago