Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Quiz

Instruction

A-ma-zing! This was no problem for you! Take a look at our third task:

essay (id, person, topic, length, points)

We're now going to analyze essays written by various students. Each essay has an id, was written by a specific person, has a certain topic and a certain length (expressed as the number of words). Each essay is given points (0-100).

There may be more than one essay written by the same person.

Exercise

Show students' names (the person column) together with:

• The number of essays they handed in (name the column number_of_essays).
• Their average number of points (name the column avg_points).

Show only those students whose average number of points is more than 80.

Stuck? Here's a hint!

SELECT ...
FROM ...
GROUP BY ...
HAVING ...;