Академический Документы
Профессиональный Документы
Культура Документы
You can use grouped queries to define groups in your data, and then you can perform data
analysis computations per group. You group the data by a set of attributes known as a grouping
set. Traditional T-SQL queries define a single grouping set; namely, they group the data in
only one way. More recently, T-SQL introduced support for features that enable you to define
multiple grouping sets in one query. This lesson starts by covering queries that define a single
grouping set, and then it covers queries that define multiple ones.
Because theres no explicit GROUP BY clause, all rows queried from the Sales.Orders table
are arranged in one group, and then the COUNT(*) function counts the number of rows in
that group. Grouped queries return one result row per group, and because the query defines
only one group, it returns only one row in the result
Queries
You can use grouped queries to define groups in your data, and then you can perform data
analysis computations per group. You group the data by a set of attributes known as a grouping
set. Traditional T-SQL queries define a single grouping set; namely, they group the data in
only one way. More recently, T-SQL introduced support for features that enable you to define
multiple grouping sets in one query. This lesson starts by covering queries that define a single
grouping set, and then it covers queries that define multiple ones.
Because theres no explicit GROUP BY clause, all rows queried from the Sales.Orders table
are arranged in one group, and then the COUNT(*) function counts the number of rows in
that group. Grouped queries return one result row per group, and because the query defines
only one group, it returns only one row in the result
Experience Summary:
Operating Systems
AIX, HP-UX, Solaris, UNIX, Windows XP, 2003, 2000, Vista, Windows
NT and Linux
Languages
Databases
Web Related
Testing Tools
Web / Application
Servers
Methodologies
Environment: Windows, HPUX, AIX, JavaScript, Oracle, C, C++, WebSphere, Apache, WebLogic,