Problem: Do Math with Your Data

You’ll calculate:

  • Total number of pets.

  • Average pet age.

The pets table

ID

Name

Type

Age

1

Coco

dog

5

2

Luna

cat

3

3

Goldie

fish

1

Use the above table to write your query.

Problem: Do Math with Your Data

You’ll calculate:

  • Total number of pets.

  • Average pet age.

The pets table

ID

Name

Type

Age

1

Coco

dog

5

2

Luna

cat

3

3

Goldie

fish

1

Use the above table to write your query.

MySQL
# Write your query here: