Question · SQL and MySQL course · Module 6: Aggregation and grouping

The AVG function

What will the query SELECT AVG(cena) FROM ksiazki; compute?

Answer options

  • The average price of all books
  • The sum of all book prices
  • The highest book price
  • The number of books

You can check the correct answer by solving this task in the CodeWorlds game.