Evaluation Order and Common Problems
Window functions and GROUP BY
Summary and Review
21. Exercise 2

Instruction

Good. How about this one?

Exercise

For each author show the:

  • AuthorId,
  • Number of books published by this author (name the column NumberOfBooks),
  • Rank of the author, based on the number of published books in descending order (name the column Ranking).