SQL Server Course for Beginners with 100+ examples - COUNT() Function

Interactive Video
•
Information Technology (IT), Architecture
•
University
•
Hard
Wayground Content
FREE Resource
Read more
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary purpose of the AVG function in SQL?
To count the number of rows in a table
To calculate the sum of a numerical column
To calculate the average value of a numerical column
To find the maximum value in a column
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the example with the employee table, what SQL command is used to display all records?
SELECT COUNT(*) FROM employee
SELECT salary FROM employee
SELECT * FROM employee
SELECT AVG(salary) FROM employee
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the average salary calculated in the example with the employee table?
7283
6000
5000
8000
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you modify the AVG function to only consider employees with a salary above 6000?
By using a WHERE clause
By using an ORDER BY clause
By using a HAVING clause
By using a GROUP BY clause
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of using the AVG function with a WHERE clause filtering salaries greater than 6000?
It calculates the average of salaries less than 6000
It calculates the average of all salaries
It returns an error
It calculates the average of salaries greater than 6000
Similar Resources on Wayground
6 questions
Complete SAS Programming Guide - Learn SAS and Become a Data Ninja - How to Join Three Tables

Interactive video
•
University
2 questions
SQL Server Course for Beginners with 100+ examples - LIKE Operator

Interactive video
•
University
2 questions
SQL Server Course for Beginners with 100+ examples - Insert Records

Interactive video
•
University
2 questions
SQL Server Course for Beginners with 100+ examples - OR Operator

Interactive video
•
University
2 questions
SQL Server Course for Beginners with 100+ examples - Create a Table

Interactive video
•
University
6 questions
AZ-204 Developing for Microsoft Azure Exam Prep - Structured Query Language (SQL) SQL Server Management Studio (SSMS)

Interactive video
•
University
6 questions
Job-Ready SQL in an Afternoon - Negating Conditionals

Interactive video
•
University
2 questions
SQL Server Course for Beginners with 100+ examples - Back Up a Database in SQL

Interactive video
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University