Preview of practice Count, Sum, Avg, Max, Min (3.1) - SQL for Business Analysts - Business Analysis
Students

Academic Programs

AI-powered learning for grades 8-12, aligned with major curricula

Professional

Professional Courses

Industry-relevant training in Business, Technology, and Design

Games

Interactive Games

Fun games to boost memory, math, typing, and English skills

COUNT, SUM, AVG, MAX, MIN

Practice - COUNT, SUM, AVG, MAX, MIN

Learning

Practice Questions

Test your understanding with targeted questions

Question 1 Easy

What SQL function would you use to count the number of users?

💡 Hint: Think of how we track the number of entries in a dataset.

Question 2 Easy

How would you aggregate the total sales from a table?

💡 Hint: Consider what you're adding up.

4 more questions available

Interactive Quizzes

Quick quizzes to reinforce your learning

Question 1

What does the AVG function calculate?

Total of values
Lowest value
Average of values

💡 Hint: Think about how you would find the average score.

Question 2

True or False: The COUNT function can return 0 if no rows meet the condition.

True
False

💡 Hint: Consider what happens when there are no results.

2 more questions available

Challenge Problems

Push your limits with advanced challenges

Challenge 1 Hard

Write a complex SQL query that retrieves departments with an average salary above the total average salary and shows the maximum salary within each department.

💡 Hint: You'll need to use subqueries to compare average salaries.

Challenge 2 Hard

Using a sales data table, create a query to find products whose total sales exceed the average sales of all products and list them.

💡 Hint: Think about how you would aggregate and compare the totals.

Get performance evaluation

Reference links

Supplementary resources to enhance your learning experience.