Get startedGet started for free

Minimum and maximum

You're completing your executive report by adding duration ranges to provide full context for each year's content. After showing averages and totals, the minimum and maximum durations help executives understand the breadth of content available, whether a year offers diverse duration options or clusters around similar lengths.

This exercise is part of the course

Intermediate SQL with AI

View Course

Exercise instructions

  • Create a prompt that shows, for each release year, the lowest and highest duration, and have the highest duration show first.

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

SELECT release_year
FROM films;
Edit and Run Code