Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What result will the following SQL statement produce? SELECT AVG(salary) AS averageSalary FROM Employees; A) The average of all employees in the table employees B)

What result will the following SQL statement produce?

SELECT AVG(salary) AS averageSalary

FROM Employees;

A) The average of all employees in the table employees

B) The average salary of all employees

C) The salary of all employees

D) The mode of all salary

_____2) The following query the average salary in state= 'NC' for each employee.

SELECT employeeID, AVG(salary)

FROM Employees

GROUP BY employeeID

HAVING state = 'NC';

A) True.

B) False

_____3) What will be returned when the following SQL statement is executed?

SELECT driverNo, count(*) numDeliveries

FROM Deliveries

WHERE city = 'Greensboro'

GROUP BY driverName;

A) A listing of all drivers who made deliveries to city = 'Greensboro', sorted by driver name

B) A listing of each driver who made deliveries to city = 'Greensboro' as well as the number of deliveries that each driver has made to that city

C) A count of all the deliveries made to city = 'Greensboro' by all drivers

D) An error message will be generated

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

Are the rules readily available?

Answered: 1 week ago

Question

Are these written ground rules?

Answered: 1 week ago