Question

The common requirements of all questions are the same. Read each question carefully and submit an...

The common requirements of all questions are the same. Read each question carefully and submit an appropriate query to fulfill for each question. Also, students need to provide screenshot(s) of the query result under the corresponding query. The query result should be copied and pasted as it is printed on the screen without any modification. If necessary, the column names appearing in the result should be converted appropriately using "AS" in statement. Don’t delete or change questions. You just need to insert both your TEXT query and captured screenshot result under your query.

1. HR Manager is interested in counting branches in each country. Also, the manager wants to see the results in a report sorted from high to low sequence of the number of branches. (10 points)

2. HR manager wants to make a report which shows minimum, and maximum salary of each department. (5 points)

3. HR manager wants to make a report which shows sum and average salary of each department, and job position. (10 points) t

4. HR manager wants to make a report which contains 4 head columns “Job ID, Average Salary, Minimum Salary, Maximum Salary”. Also, he wants the report to be sorted by maximum Salary from low to high. (10 points)

5. Due to lower salary of salespersons may yield skewed total salary in the previous reports. The HR manager wants to calculate total salaries and count of only non-salespersons of each department and job id. Include total of salary and the number of employees of the groups, department id, job id in your report. Also, total sum of each department and total number of each department should be in included in the result (HINT: You need to use ROLLUP in GROUP BY clause). (15 points).

Homework Answers

Answer #1

1. select count(*) as Branches,cOUNTRY from employee GROUP BY cOUNTRY;

2.select min(e.salary) as minimum,max(e.salary) as maximum,d.dept_id from employee e,department d where e.emp_id=d.emp_id group by d.dept_id

4.select JOB_ID, min(salary) as minimum,avg(salary)as AVERAGE,max(salary) as maximum from employee group by JOB_ID order by maximum DESC;

3. select min(e.salary) as minimum,max(e.salary) as maximum,d.dept_id from employee e,department d where e.emp_id=d.emp_id group by d.dept_id;

I had time to answer only 4 subparts. And the table data I have used is just a sample data and please use your own tables and run these queries.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
For this assignment, you need to submit a Python program that gathers the following employee information...
For this assignment, you need to submit a Python program that gathers the following employee information according to the rules provided: Employee ID (this is required, and must be a number that is 7 or less digits long) Employee Name (this is required, and must be comprised of primarily upper and lower case letters. Spaces, the ' and - character are all allowed as well. Employee Email Address (this is required, and must be comprised of primarily of alphanumeric characters....
Joe's Hamburger Grill Discussion Please read the case and answer the questions at the end. Joe's...
Joe's Hamburger Grill Discussion Please read the case and answer the questions at the end. Joe's Hamburger Grill has been doing business in the same location for the past 20 years. The Grill is located in Phoenix, Arizona, and caters to college students by providing some of the world's biggest hamburgers in a fun and casual dining atmosphere. Joe looks back with fondness on the 20 years that have passed since he first opened the grill. His primary motivation for...
Show all of your work in each question. In parts (d), (e), and (g) make sure...
Show all of your work in each question. In parts (d), (e), and (g) make sure to set up your null and alternative hypotheses and write your conclusions. Also, please round your numbers to 2 decimal points. Write legibly and neatly. You can use p-value approach or critical-value approach in writing the conclusions of your hypotheses. A large firm employing tens of thousands of workers has been accused of discriminating against its female managers. The accusation is based on a...
QUESTION 1 (60) Read the case study below and answer the questions that follow. Transforming a...
QUESTION 1 (60) Read the case study below and answer the questions that follow. Transforming a pharmacy together: the Charlotte Maxeke Johannesburg Academic hospital. Before 2015, the patient experience at the Charlotte Maxeke Johannesburg Academic Hospital pharmacy went something like this: take the day off work to have your prescription filled; line up at dawn before the pharmacy opens in hopes of beating the rush; once inside, wait up to several hours for your prescription to be filled; or worse,...
QUESTION 1 All of the followings are the rights and privileges of a Common Stockholders EXCEPTING:...
QUESTION 1 All of the followings are the rights and privileges of a Common Stockholders EXCEPTING: a. Voting/Proxy Rights b. Right to Dividends c. Residual Right d. Pre-emptive Right e. Right to Interest Payments 10 points    QUESTION 2 Your best friend's parents want to buy a home in the Worcester County, but they don’t know the exact amount of money that they can afford to borrow. They can afford monthly payments of $ 1,800. A friendly bank in Worcester...
Provide the following: A list of two functional requirements. A list of two nonfunctional requirements (must...
Provide the following: A list of two functional requirements. A list of two nonfunctional requirements (must be measurable). A list of two design constraints. Saleem Application[1] Health is the most valuable possession for a human.Therefore, health must be cared about by all means. Good food, physical exercise and enough sleep are keys to good health. Another important factor is fitness. Fitness is a condition of being physically active. It is a result of general nutrition and proper conditioning, and it...
1. Elisa, an HR manager for a medium-sized company, is assigned to update all job descriptions...
1. Elisa, an HR manager for a medium-sized company, is assigned to update all job descriptions and job specifications for her company. Elisa will begin by collecting information about each job title, as well as about the kinds of activities and responsibilities that go with each job. After she thoroughly analyzes a job, she will write the job description and job specifications for that job. True False 2. People over 65 years old represent the unemployed generation. the single-parent family...
Texas is home to more than one million undocumented immigrants, and most of them are stuck...
Texas is home to more than one million undocumented immigrants, and most of them are stuck in low-paying jobs. Meanwhile, the state also suffers from a lack of skilled workers. The Texas Workforce Commission estimates that 133,000 jobs are currently unfilled, many because employers cannot find qualified applicants (The Boston Globe, September 29, 2011). Texas was the first state to pass a law that allows children of undocumented immigrants to pay in-state college tuition rates if they have lived in...
Directions: Develop an E-R (or EER depending upon need) Diagram. List all assumptions. Show the version...
Directions: Develop an E-R (or EER depending upon need) Diagram. List all assumptions. Show the version 1 (entities and data only) and version 3 (entities, attributes and relationships with cardinalities and participation constraints). 20 points of the grade will be based on evaluating your assumptions - you must give a detailed list of your assumptions identifying anchor concepts, data associated with the anchor and data that has more than one anchor participating in it. Remember, we are not talking out...
Question: What is the amount of cash received from the sale of equipment if Horizon Insurance...
Question: What is the amount of cash received from the sale of equipment if Horizon Insurance elects to outsource publishing to G-Art? Use the following case to help determine the answer: Horizon Insurance (HI) was a full-service regional insurance agency that has done all the printing and publishing of its own promotional brochures, newsletters, informational pamphlets, and required regulatory reports. Linda Wolfe, the business manager of the agency, had for some time thought that the firm might save money and...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT