Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to:
SQL Server
You can create a query result in which each result row corresponds to an entire group of rows from the original data.
To learn the details about creating such queries, see the topics listed in the following table.
In this section
Article | Description |
---|---|
Sort rows | Describes the various ways in which you can sort rows and why you would use them. |
Collapse Groups of Rows | Describes the various ways to collapse rows, such as calculating or eliminating duplicates. |
Sort with ORDER BY | Provides steps for returning results in a specified order. |
Sort in ascending or descending order | Provides steps for changing or setting sort direction. |
Sort multiple columns in queries | Provides steps for setting the order of results sets for multiple columns. |
Group Rows in Query Results | Provides steps for creating subsets of summary information by organizing data into groups. |
Specify conditions for groups | Provides steps for creating search conditions that apply to groups of rows. |
Reorder output columns | Provides steps for changing current sorting settings. |