Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am using Oracle SQL Developer and only have assignments work when I use identifiers such as emp or sal. I need to complete the

I am using Oracle SQL Developer and only have assignments work when I use identifiers such as "emp" or "sal". I need to complete the following assignment, but all the guides I am finding use "employee" or "salary" instead which gives me errors when I try to run the script. Do I need to download a database in order to get this to work or can I accomplish this using the identifiers I have used in the past? If so, how do I go about doing that?

Lesson 5

Display the highest, lowest, sum, and average salary of all employees. Label the columns Maximum, Minimum, Sum, and Average, respectively. Round your results to the nearest whole number.

Modify the previous SQL statement to display the minimum, maximum, sum and average salary for each job type.

Write a query to display the number of people with the same job. Example: Analyst 2 Clerk 4

Determine the number of managers without listing them. Label the column Number of Managers.

Write a query that will display the difference between the highest and lowest salaries. Label the column DIFFERENCE.

Display the manager number and the salary of the lowest paid employee for that manager. Exclude anyone whose manager is not known. Exclude any group where the minimum salary is less than $1000. Sort the output in descending order of salary.

Write a query to display the department name, location name, number of employees, and the average salary for all employees in that department. Label the columns DName, Loc, Number of People, and Salary, respectively. Round the average salary to two decimal places.

Create a query that will display the total number of employees and of that total the number who were hired in 1980, 1981, 1982, and 1983. Use appropriate column heading.

Create a matrix query to display the job, the salary for that job based on department number, and the total salary for that job for all departments, giving each column an appropriate heading.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual C# And Databases

Authors: Philip Conrod, Lou Tylee

16th Edition

1951077083, 978-1951077082

More Books

Students also viewed these Databases questions

Question

107 MA ammeter 56 resistor ? V voltmeter

Answered: 1 week ago

Question

Generally If Drug A is an inducer of Drug B , Drug B levels will

Answered: 1 week ago

Question

Describe Table Structures in RDMSs.

Answered: 1 week ago