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

The SUM function

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

Answer options

  • The average price of a book
  • The number of books
  • The cheapest book
  • The sum of the prices of all books together

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