Question: Question : Give a query that checks whether the minimum salary in each country is at least 40% of the maximum salary for that country.

Question : Give a query that checks whether the minimum salary in each country is at least 40% of the maximum salary for that country.

so far I can get the max salaries of every country using this query.

select a.salary , a.country from agent a where a.salary = (select max(b.salary) from agent b where a.country = b.country) group by a.country, a.salary;

please continue the asnwer.

Thank you.

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!