GROUP BY - divide the rows returned from SELECT into groups
SELECT col1, aggregate_func(col2)
FROM table
GROUP BY col1
GROUP BY without an aggregate function acts like DISTINCT
We use cookies to understand our websites traffic and offer our website visitors personalized experience. To find out more, click ‘More Information’. In addition, please, read our
Privacy policy.