Procedure and change the manager number

Assignment Help Business Management
Reference no: EM131311586

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: EM131311586

Questions Cloud

Calculate the equilibrium level of income or real gdp : Calculate the equilibrium level of income or real GDP for this economy. What happens to equilibrium Y if Ig changes to 15? What does this outcome reveal about the size of the multiplier?
How are qbe tools and sql similar : How are QBE tools and SQL similar?- How are they different?- What is a data warehouse? - How does it differ from a database?
Explain the whitehall study in detail : Explain the Whitehall Study in detail. What is the significance of this study? What are the criticisms of this study
What is the linux equivalent : The questions in the previous paragraph must be answered at a minimum. Just listing "common OS" found in desktop computers doesn't prove you "understand." You need to compare and contrast for example Windows with Linux. Compare the user interface...
Procedure and change the manager number : 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.
Prepare a short report for detailing the incident : The Happy Hacker is a Web site devoted to "hacking"-breaking into computer systems.-  Prepare a short report for detailing the incident.
Projects have the same risk and the same lives : Project X’s IRR is 19% and Project Y’s IRR is 17%. The projects have the same risk and the same lives, and each has constant cash flows during each year of their lives. If the WACC is 10%, Project Y has a higher NPV than X. Given this information, wh..
How the void of adapting healthy practices could prove : How this physical ailment could translate differently across gender. The vital role of the sleep cycle and the importance of physical activity in adolescents. How the void of adapting healthy practices could prove to have catastrophic consequences in..
Find the statement of cash flow for a firm : The operating cash flow dividends ratio indicates the number of times that a company can pay its annual dividend with its operating cash flows. Martin Marietta has demonstrated that they are more than capable of meetings its annual dividend paymen..

Reviews

Write a Review

Business Management Questions & Answers

  Caselet on michael porter’s value chain management

The assignment in management is a two part assignment dealing 1.Theory of function of management. 2. Operations and Controlling.

  Mountain man brewing company

Mountain Man Brewing, a family owned business where Chris Prangel, the son of the president joins. Due to increase in the preference for light beer drinkers, Chris Prangel wants to introduce light beer version in Mountain Man. An analysis into the la..

  Mountain man brewing company

Mountain Man Brewing, a family owned business where Chris Prangel, the son of the president joins. An analysis into the launch of Mountain Man Light over the present Mountain Man Lager.

  Analysis of the case using the doing ethics technique

Analysis of the case using the Doing Ethics Technique (DET). Analysis of the ethical issue(s) from the perspective of an ICT professional, using the ACS Code of  Conduct and properly relating clauses from the ACS Code of Conduct to the ethical issue.

  Affiliations and partnerships

Affiliations and partnerships are frequently used to reach a larger local audience? Which options stand to avail for the Hotel manager and what problems do these pose.

  Innovation-friendly regulations

What influence (if any) can organizations exercise to encourage ‘innovation-friendly' regulations?

  Effect of regional and corporate cultural issues

Present your findings as a group powerpoint with an audio file. In addition individually write up your own conclusions as to the effects of regional cultural issues on the corporate organisational culture of this multinational company as it conducts ..

  Structure of business plan

This assignment shows a structure of business plan. The task is to write a business plane about a Diet Shop.

  Identify the purposes of different types of organisations

Identify the purposes of different types of organisations.

  Entrepreneur case study for analysis

Entrepreneur Case Study for Analysis. Analyze Robin Wolaner's suitability to be an entrepreneur

  Forecasting and business analysis

This problem requires you to apply your cross-sectional analysis skills to a real cross-sectional data set with the goal of answering a specific research question.

  Educational instructional leadership

Prepare a major handout on the key principles of instructional leadership

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