Scenario: A developer is tasked with identifying the highest and lowest sales amounts for a particular product. Which aggregation functions should they utilize in DB2, and how?

  • MAX(), MIN()
  • AVG(), SUM()
  • COUNT(), AVG()
  • MIN(), SUM()
The correct option is MAX(), MIN(). MAX() returns the highest value, and MIN() returns the lowest value. In this scenario, the developer needs to find the highest and lowest sales amounts, which can be achieved by using these functions. AVG() calculates the average, SUM() calculates the total sum, and COUNT() counts the number of rows. 
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *