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

  What is the npv of the lease

The copier wouldcost $8,100 to buy and would be depreciated using the straight-linemethod to zero salvage over nine years. The firm can borrow at arate of 8%. The corporate tax rate is 30%. What is the NPV of the lease?

  Nominal value of the ordinary shares

At the end of 3 years, the shares were sold for £4.10 per share. The broker's rate of commission on sale was 0.85%, and was calculated on the nominal value.

  Determining the multinational competitors

What factors predict how local emerging firms will respond to multinational competitors?

  Explain the marketing mix for your enterprise

Please double space your paper. Grammar, spelling and punctuation do count. Your work must be original material; properly cite all quoted and/or paraphrased material in APA format. Provide at least one scholarly reference.

  Fair labour standards board

The authority for investigating partial labour practices is vested in the • Fair Labour Standards Board • Equal Employment Opportunity Commission • Federal Trade Commission • National Labour Relations Board

  Key elements of organizational structure

Which of the following is not one of the six key elements of organizational structure

  Why having consistent structure is important to the process

Research cost or pricing proposal structures, and offer you opinion, with evidence, on why having a consistent structure is important to the process of negotiation.

  Use of digital technology in keeping people

Give details for each of the three different companies. How effective is each use of digital technology in keeping people as loyal customer?

  What is the planning process

What is the planning process? Briefly explain each step in the process.

  Write a short paper that outlines your observations

What are the three most important differences you observed between the stores? Using the results of your research, write a short paper that outlines your observations.

  Make up the management process

Discuss the four basic functions that make up the management process. How are they related to one another?

  Determining the horizon consulting

Read the "Horizon Consulting" case on pages 97-99 of your textbook. After reading the case, answer the following questions:

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