Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Students also viewed these Databases questions

Question

13-1 How does building new systems produce organizational change?

Answered: 1 week ago