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

  Financing cash flows to the operating section?

Given that regard less of the classification of the cash flows the result is the same with respect to the amount of change in cash flows during the designated period what motive might exist to shift investing and/or financing cash flows to the ope..

  Measurement and decision making assessment detail gb519

assessment detail gb519 assessment 1 case study 1 weighting 20 length 1000 words due end of week 2 due on 26th

  Use a valuation tree to determine

Use a valuation tree to determine if ((¬(p → q))∧((¬p) ∨ (p ∧ q))) is a tautology, satisfiable, or a contradiction.

  What is the international nature of the current business

What is the international nature of the current business on these dimensions? Do these suggest any action items for the business's near-term strategic management?

  What are the common causes of the given problems

How can one protect against virus outbreaks in an organization? What are the common causes of this problems? How would use address this troublesome trend?

  What is the value of an advisory board

What is the value of an Advisory Board AND a Governance Board and Are there situations where only a Governance Board is appropriate?

  Explain the importance of service to the hospitality

Explain the importance of service to the hospitality and tourism industries. Use an example to support your answer?

  Comment on the validity of the arguments

Research and present the leading opinions and comment on the validity of the arguments. Which side is more compelling? Why?

  What is the cost of underestimating demand for each program

What is the cost of underestimating demand for each program? - What is the overage cost per program? - How many programs should be ordered per game?

  Define the elements of a legal contract where applicable

Define the elements of a legal contract using examples from the scenario where applicable. Decide whether or not there was a contract for the purchase of the automobile.

  Explain the theory of comparative advantage

This is for an employment law class: Harvey Jameson was recently terminated as comptroller at the age of 66 from Better Beef, Inc.

  Subject of groupthink and focalism on the internet

Research the subject of groupthink and focalism on the Internet and in textbooks. Then, discuss the two concepts. In your answer, discuss the similarities and dissimilarities of the two.

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