Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a query that calculates the difference between the highest salaries found in the marketing and engineering departments. Output just the absolute difference in salaries.
Write a query that calculates the difference between the highest salaries found in the marketing and engineering departments. Output just the absolute difference in salaries.
Tables Schema as Below:
employee
columnName dataType
id INT
firstname VARCHAR
lastname VARCHAR
salary INT
departmentid INT
dept
columnName dataType
id INT
department VARCHAR
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started