Which SQL clause is required when using an aggregate function to also display non-aggregated columns?

SQL Fundamentals Medium

SQL Fundamentals — Medium

Which SQL clause is required when using an aggregate function to also display non-aggregated columns?

Key points

  • GROUP BY is used with aggregate functions
  • It groups non-aggregated columns
  • HAVING filters aggregated results
  • ORDER BY sorts the final output

Ready to go further?

Related questions