Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 3 An organization maintains employment data in three tables: EMPLOYEE, COMPANY, and SALARY. Write a query to print the names of every company where

Question 3 An organization maintains employment data in three tables: EMPLOYEE, COMPANY, and SALARY. Write a query to print the names of every company where the average salary is greater than or equal to 40000. Each distinct row of results in the output must contain the name of a company whose average employee salary is >=40,000 in the COMPANY.NAME format. > Schema Name NAME Type Integer String Name NAME Type Integer String Name EMPLOYEE_ID EMPLOYEE Description An employee ID in the inclusive range [1,1000]. This is the primary key. An employee name. This field contains between 1 and 100 characters (inclusive). COMPANY Description A company ID in the inclusive range [1,1000). This is the primary key. A company name. This field contains between 1 and 100 characters (inclusive). SALARY Type Description Integer An employee ID in the inclusive range [1,1000).

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