The queries can be written on the behalf of company names by selecting them from options with respect to their salaries.
The query that is used to find the average salary of the employee is as follows:
In this AVG function example, we've aliased the AVG(salary) expression as "Avg Salary". As a result, "Avg Salary" will display as the field name when the result set is returned.
The same principle is applied in the query that is used to print the names of every company where the average salary is greater than or equal to 40000, i.e. SELECT c.name FROM company c JOIN salary s ON c.id = s.company_id GROUP BY c.name HAVING AVG(salary) >= 40000.
Therefore, the queries can be written on the behalf of company names by selecting them from options with respect to their salaries.
To learn more about Employment salary, refer to the link:
https://brainly.com/question/24988098
#SPJ1