...

/

Solution: Do Math with Your Data

Solution: Do Math with Your Data

We'll cover the following...

Query

SELECT COUNT(*) AS total_pets, AVG(age) AS average_age
FROM pets;

Explanation

This SQL query calculates two things from the pets ...