Question: sql command Q1. Using hr schema, write a query to display first name, last name, department name, city of the department and the street address

sql command

Q1. Using hr schema, write a query to display first name, last name, department name, city of the department and the street address for each employee who earns more than 10000$ per month. (1.5)

Q2. Write a query to display employees name, his salary, the difference between his salary and the lowest salary for his job, and the difference between his salary and the highest salary in his job. (1.5)

Q3. Write a query to display each street address with the number of departments exist in it. Exclude departments 100, 80, 50 and 30 from the summations. (2)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!