When window functions are evaluated
Window functions and GROUP BY
Summary
21. Exercise 2

Instruction

Good. How about this one?

Exercise

For each author show:

  • author_id,
  • the number of books published by this author (name the column number_of_books),
  • the rank of the author based on the number of published books in descending order.

Console

Code editor

Result

TableConsole