4. Let suppose you have following three 2D arrays named as Worker, Bonus, Title with the...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
4. Let suppose you have following three 2D arrays named as Worker, Bonus, Title with the given data. There is one common column i.e. Worker ID in all these arrays. Worker: WORKER_ID FIRST_NAME LAST_NAME SALARY JOINING DATE DEPARTMENT 001 Monika Arora 100000 2014-02-20 09:00:00 HR 002 Niharika Verma 80000 2014-06-11 09:00:00 Admin 003 Vishal Singhal 300000 2014-02-20 09:00:00 HR 004 Amitabh Singh 500000 2014-02-20 09:00:00 Admin 005 Vivek Bhati 500000 2014-06-11 09:00:00 Admin 006 Vipul Diwan 200000 2014-06-11 09:00:00 Account 007 Satish Kumar 75000 2014-01-20 09:00:00 Account 008 Geetika Chauhan 90000 2014-04-11 09:00:00 Admin Bonus: Title: WORKER_REF_ID BONUS DATE BONUS_AMOUNT WORKER REF_ID WORKER_TITLE AFFECTED_FROM 1 2016-02-20 00:00:00 5000 1 Manager 2016-02-20 00:00:00 2 Executive 2016-06-11 00:00:00 2 2016-06-11 00:00:00 3000 8 Executive 2016-06-11 00:00:00 3 2016-02-20 00:00:00 4000 Manager 2016-06-11 00:00:00 1 2016-02-20 00:00:00 4500 4 Asst. Manager 2016-06-11 000:00 2016-06-11 00:00:00 3500 7 Executive 2016-06-11 00:00.00 6 Lead 2016-06-11 00:00:00 3 Lead 2016-06-11 00:00:00 Write 'C' programs for each of the following tasks: a. Display the details of the workers having maximum salary of each department. Sample Output: 003 Vishal Singhal 300000 2014-02-20 HR 004 Amitabh Singh 500000 2014-02-20 Admin 006 Vipul Diwan 200000 2014-06-11 Асcount b. Fetch departments along with the total salaries paid for each of them. e.g. Sample Output: HR - 400000 Admin - 1170000 Account - 275000 4. Let suppose you have following three 2D arrays named as Worker, Bonus, Title with the given data. There is one common column i.e. Worker ID in all these arrays. Worker: WORKER_ID FIRST_NAME LAST_NAME SALARY JOINING DATE DEPARTMENT 001 Monika Arora 100000 2014-02-20 09:00:00 HR 002 Niharika Verma 80000 2014-06-11 09:00:00 Admin 003 Vishal Singhal 300000 2014-02-20 09:00:00 HR 004 Amitabh Singh 500000 2014-02-20 09:00:00 Admin 005 Vivek Bhati 500000 2014-06-11 09:00:00 Admin 006 Vipul Diwan 200000 2014-06-11 09:00:00 Account 007 Satish Kumar 75000 2014-01-20 09:00:00 Account 008 Geetika Chauhan 90000 2014-04-11 09:00:00 Admin Bonus: Title: WORKER_REF_ID BONUS DATE BONUS_AMOUNT WORKER REF_ID WORKER_TITLE AFFECTED_FROM 1 2016-02-20 00:00:00 5000 1 Manager 2016-02-20 00:00:00 2 Executive 2016-06-11 00:00:00 2 2016-06-11 00:00:00 3000 8 Executive 2016-06-11 00:00:00 3 2016-02-20 00:00:00 4000 Manager 2016-06-11 00:00:00 1 2016-02-20 00:00:00 4500 4 Asst. Manager 2016-06-11 000:00 2016-06-11 00:00:00 3500 7 Executive 2016-06-11 00:00.00 6 Lead 2016-06-11 00:00:00 3 Lead 2016-06-11 00:00:00 Write 'C' programs for each of the following tasks: a. Display the details of the workers having maximum salary of each department. Sample Output: 003 Vishal Singhal 300000 2014-02-20 HR 004 Amitabh Singh 500000 2014-02-20 Admin 006 Vipul Diwan 200000 2014-06-11 Асcount b. Fetch departments along with the total salaries paid for each of them. e.g. Sample Output: HR - 400000 Admin - 1170000 Account - 275000
Expert Answer:
Answer rating: 100% (QA)
a Displaying workers having maximum salary maxsalaryc include include include const char Worker4820 001MonikaArora10000020140220 090000HR 002NiharikaV... View the full answer
Related Book For
Posted Date:
Students also viewed these databases questions
-
Suppose you are an HR manager tasked with drafting a drug policy. What would you include in the policy and what guidelines would you follow?
-
Name it Biggest Losses. Have a column named 1985 Opening Price, one column named 2003 closing price. Compute the range of the stocks, then sort them to determine the company with the greatest loss....
-
You are an HR manager of Chern's department store, and are seeking to hire ONE new sales associate for your flagship store in NJ. Due to the budget constraint, you are considering to choose five...
-
Given a sorted array of Comparable items, write functions floor () and ceiling () that return the index of the largest (or smallest) item not larger (or smaller) than an argument item in logarithmic...
-
(a) For a fiber-reinforced composite, the efficiency of reinforcement η is dependent on fiber length l according to where x represents the length of the fiber at each end that does not...
-
The researchers cited in the previous problem (Liguori & Robinson, 2001) also examined the effect of caffeine on response time in the driving simulator. In a similar study, researchers measured...
-
For the balance sheet for Bethesda Imaging, shown in Table 2.6, identify three financial ratios that might be of interest to an investor in the company. What do the 5 -year trends for the ratios...
-
Yates Company supplies road salt to county highway departments. The company has three trucks, and the dispatcher is trying to schedule tomorrows deliveries to Polk, Dallas, and Jasper counties. Two...
-
Required information [The following information applies to the questions displayed below.] Camille Sikorski was divorced in 2018. She currently provides a home for her 15-year-old daughter Kaly. Kaly...
-
While El Niño is pouring its rain on northern California, Charlotte Rothstein, CEO, major shareholder and founder of Cerebrosoft, sits in her office, contemplating the decision she...
-
Describe the acrosomal and cortical reaction that takes place during sea urchin fertilization. Must include a detailed description of each step that occurs
-
Some investors continue to hold stock certificates as proof of ownership, but most investors hold their securities in a broker's street name. Ask a relative or friend who owns stocks if they hold the...
-
Did you know that every publicly owned and traded company in the United States is required by law to provide both a quarterly and an annual report to anyone who asks for one? Contact a publicly owned...
-
The following is a set of data from a sample of n = 7: a. Calculate the first quartile (Q1), the third quartile (Q3), and the interquartile range. b. Find and list the five-number summary. c....
-
The following is a set of data for a population with N = 13: a. Calculate the population mean. b. Calculate the standard deviation. 8 6 12 9 4 7 3 2 10 9 7 5 4
-
On 1 March 2017, James Taylor decided to open Taylors Tailormade that makes suits, trousers and jackets, and repairs and alters clothes. He contributed for this purpose sewing equipment $46 000 and a...
-
Using the rational rule allows business owners to experiment their way to the point where Explain the following economic profits are maximized marginal costs are minimized. total benefits are...
-
Burberrys competitive advantage is through its differentiation strategy. What risk should Burberry remain aware of?
-
Three males and three females are given 5 minutes to memorize a list of 25 words, and then asked to recall as many of them as possible. The three males recalled 10, 12, and 14 of the words, for an...
-
In a special double issue of Time magazine, the cover story featured Pope John Paul II as Man of the Year (26 December 19942 January 1995, pp. 7476). As part of the story, Time reported on the...
-
Suppose that 55% of the voters in a large city support a particular candidate for mayor and 45% do not support the candidate. A poll of 100 voters will be conducted, and the proportion of them who...
-
P. Topp is employed at a rate of 12 per hour. During the week to 18 May 2016 he worked his basic week of 40 hours. According to the requisite tables the income tax due on his wages was 46, and...
-
Why do you think this development occurred?
-
What other deductions might be made from gross pay by an employer?
Study smarter with the SolutionInn App