Answered step by step
Verified Expert Solution
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
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