Total number of employees assigned to a specific department

Assignment Help Business Management
Reference no: EM131310357

Create a package, DEPT_PKG, with the following: A public procedure called NEW_DEPT to enter a new department row into the DEPARTMENTS table. The procedure should accept four parameters - one for each column in the DEPARTMENTS table. Use the parameter values in your INSERT command.A public procedure called UPD_DEPTMGR to update the manager for a specific department ID in the DEPARTMENTS table. The procedure should provide two parameters: the department  ID, and a new manager ID. Add exception handling to account for an invalid department ID.

  • A public function called GET_DEPARTMENT_COUNT to retrieve the total number of employees assigned to a specific department. The function should accept the department ID as a parameter and return the number of employees in that department. Add error handling to account for an invalid department ID.
  • Write an anonymous block that invokes the procedure NEW_DEPT to add a new department to the DEPARTMENTS table with dept ID 88, department name of "IT".  You may choose any value for location_id that is valid.  Add an exception handler that will display the current error message that raised the exception.
  • Execute the UPD_DEPTMGR procedure and change the manager number of the new department you just added.  Query the DEPARTMENTS table to view your changes.
  • Write an anonymous block which uses an explicit cursor to process all departments.  Retrieve the department name and call the GET_DEPT_COUNT function from your package to return the total count by department.  Simply call DBMS_OUTPUT.PUT_LINE and print the department name and number of employees for all departments.
  • Write a SELECT statement to display all department information for all departments using a SELECT statement which also invokes the GET_DEPT_COUNT function to return the total employee count for each department.

Query the code from your package, DEPT_PKG, (both parts) from the data dictionary.Create a trigger which will always use the next value of the sequence, bb_prodid_seq, as the idproduct column when a new record is inserted into the BB_PRODUCT table. Test  your trigger.

Reference no: EM131310357

Questions Cloud

Analyze organizational limitations and how addressed : Analyze organizational limitations and how those will be addressed.Include justification for each recommendation for forecasting needs, considering corporate culture, diversity, Affirmative Action issues, and any strategic steps that should be con..
What is the linux equivalent : You need to compare and contrast for example Windows with Linux. Compare the user interface. Contrast the file system structure. If you "ipconfig" in Windows what is the Linux equivalent?
Write a program will use a structure to store the given data : One program will use a structure to store the following data on a company division: Division Name (such as East, West, North, or South). Quarter (1, 2, 3, or 4).
Why are market distribution operation typically more erratic : Discuss and elaborate on the following statement: "The selection of a superior location network can create substantial competitive advantage."
Total number of employees assigned to a specific department : A public function called GET_DEPARTMENT_COUNT to retrieve the total number of employees assigned to a specific department. The function should accept the department ID as a parameter and return the number of employees in that department. Add error..
Describe the logistics value proposition : Describe the fundamental similarities and differences between procurement, manufacturing support, and market distribution performance cycles as they relate to logistical control.
Write java program that generates three-digit random number : Write a Java application that generates a 3-digit random number 100 times. Display the output for each of the generated numbers and the sum of all 100 numbers.
How does the quest for quality affect logistical operations : How does the "quest for quality" affect logistical operations? Does the concept of total quality have relevancy when applied to logistics?
Implementations of a priority queue : Your assignment is to write and compare two implementations of a priority queue whose highest priority element is the one with the smallest key value. The elements have the following declarations:

Reviews

Write a Review

Business Management Questions & Answers

  Potential benefits to be had from joint tariff reduction

From the tariff distorted equilibrium explain why there are no incentives for either country to unilaterally reduce its tariff and discuss whether or not there are potential benefits to be had from joint tariff reduction. Use offer curves to illus..

  Two peers on their legacy statements

Share your legacy statement with your peers and add a short discussion on what you learned through the development of the portfolio process. Respond to at least two peers on their legacy statements.

  Do you agree with given statement and why

Behaviour is generally predictable, so there is no need to formally study OB". - Do you agree this statement?? Why??

  Risk-free rate is unchanged

A stock you are holding has a beta of 2.0 and the stock is currently in equilibrium. The required rate of return on the stock is 15% versus a required return on an average stock of 10%. Now the required return on an average stock increases by 30.0% (..

  What is the moral point of view and why is it important

What is the moral point of view and why is it important? Does it make sense to say that business people must operate from the perspective of the moral point of view? Why, or why not?

  Is what earl and ron doing unethical

1) Is what Earl and Ron doing unethical? 2) If Mandy chooses not to say anything to the office manager, is she being unethical?

  Business question organizational behaviororganizational

business question organizational behaviororganizational behavior classes are useful only to people who will pursue a

  Effective leader empower

How can an effective leader empower his/her employees and why, from an overall organizational point of view, is employee empowerment significant? Provide some relevant examples (positive or negative).

  Marketing products and services internationally

It is a responsibility of the global firm to ascertain the level of importance of various aspects of culture. Companies’ operations need to recognize and adjust to the cultural environment. Name the four elements of culture and indicate why they are ..

  Research to find one professional organization either local

Research to find one professional organization, either locally or nationally, that you feel will provide you with opportunities for professional development and staying current in your area. Discuss what the organization provides and how it will be a..

  Recommend speci?c strategies and long-term objectives

Create a BCG Matrix for JetBlue Airways. Recommend speci?c strategies and long-term objectives. Show how much your recommendations will cost. Clearly itemize these costs for each projected year. Compare your recommendations to actual strategies pl..

  Illustrate what does the research on employee stress suggest

Illustrate what does the research on employee stress suggest you should do to help minimize the experience of psychological strain for employees?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd