Detailed explanation and options for the selected question.
GROUP BY groups rows based on a common value. ORDER BY sorts rows, HAVING filters grouped rows, and DISTINCT removes duplicates.