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

Recommended Textbook for

SQL Server Query Performance Tuning

Authors: Sajal Dam, Grant Fritchey

4th Edition

1430267429, 9781430267423

More Books

Students also viewed these Databases questions

Question

What are the primary functions of GNMA? What is timing insurance?

Answered: 1 week ago

Question

Were all members comfortable brainstorming in front of each other?

Answered: 1 week ago

Question

What does Processing of an OLAP Cube accomplish?

Answered: 1 week ago