AltQuery
Initializing SQL database...
Back to Questions

Calculate Average #48

easy

Calculate the average using AVG(value). AVG() calculates the average (mean) of numeric values. It automatically excludes NULL values from the calculation.

Practice with:

Database Schema

products

Product information

idnamevalue

Expected Output

Click "Show" to see what the correct output should look like.Tip: Try solving it yourself first for better learning!

SQL Editor

Loading...

Start typing for autocomplete

AI Help

Ask for help!