Evaluation Order and Common Problems
Window functions and GROUP BY
Summary and Review
22. Exercise 3

Instruction

Superb! Let's face the next question.

Exercise

For each year in which books were published, show the following:

  • the PublishYear
  • the number of books published that year (name the column PublishedThisYear)
  • the number of books published in the previous year (name the column PublishedPreviousYear)