Question: Write a PL / SQL function COUNT _ EMP _ NN ( NN is your initials ) to return the number of employees working in
Write a PLSQL function COUNTEMPNN NN is your initials to return the number of employees working in a given country. The input parameter is a string COUNTRYID
Hint: the following query returns information on employees employee is not assigned to a department; therefore, is not included in the INNER query
select eemployeeid edepartmentid ddepartmentname,l
from hremployees e join hrdepartments d on edepartmentid ddepartmentid join hrlocations l on dlocationid llocationid;In your answer include:
CREATE statement for the function.
SELECT statement USEROBJECTS to list information about your function OBJECTNAME, OBJECTTYPE, CREATED showing day and time, STATUS and the results
Test results for US CA UK and XX invalid country id Query results
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
