For a reporting feature, how would you implement aggregate functions to display both the highest and lowest values in a single query?

  • COUNT(value), AVG(value)
  • MAX(value), MIN(value)
  • MAX(value), SUM(value)
  • SUM(value), AVG(value)
To display both the highest and lowest values in a single query, you would use the MAX() and MIN() aggregate functions. These functions retrieve the maximum and minimum values from the specified column, respectively.
Add your answer
Loading...

Leave a comment

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