Jump to content

sql group by clause


hisoka

Recommended Posts

I don't really know how to put it simpler than it is in the tutorial.

 

If you have multiple rows with the same value, you use GROUP BY to only return one result with that value. Aggregate functions can be used to operate with the values of all the rows that have been grouped.

Link to comment
Share on other sites

They're not showing all the records in the database table on that page, they only show three from each table.Most likely, in the orders table there are multiple different orders with the same ShipperID.

Link to comment
Share on other sites

"If you have multiple rows with the same value, you use GROUP BY to only return one result with that value"

 

is it the function of GROUP BY clause ?

 

what if we have multiple rows with different values, do we use GROUP BY to return only one result ??

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...