Вы находитесь на странице: 1из 2

Lesson 1: Writing Grouped 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.

After this lesson, you will be able to:

Group data by using a single grouping set.


Use group functions.
Group data by using multiple grouping sets.

Estimated lesson time: 60 minutes

Working with a Single Grouping Set


With grouped queries, you can arrange the rows youre querying in groups and apply data
analysis computations like aggregate functions against those groups. A query becomes a
grouped query when you use a group function, a GROUP BY clause, or both.
A query that invokes a group function but doesnt have an explicit GROUP BY clause arranges
all rows in one group. Consider the following query as an example.
USE TSQL2012;
SELECT COUNT(*) AS numorders
FROM Sales.Orders;

This query generates the following output.


numorders
----------830

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

Lesson 1: Writing Grouped

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.

After this lesson, you will be able to:

Group data by using a single grouping set.


Use group functions.
Group data by using multiple grouping sets.

Estimated lesson time: 60 minutes

Working with a Single Grouping Set


With grouped queries, you can arrange the rows youre querying in groups and apply data
analysis computations like aggregate functions against those groups. A query becomes a
grouped query when you use a group function, a GROUP BY clause, or both.
A query that invokes a group function but doesnt have an explicit GROUP BY clause arranges
all rows in one group. Consider the following query as an example.
USE TSQL2012;
SELECT COUNT(*) AS numorders
FROM Sales.Orders;

This query generates the following output.


numorders
----------830

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

C, C++, JAVA/J2EE, VB Scripts, PERL, Python, XML, Shell Scripting,


Ruby
Oracle, DB2, SQL Server, MS Access, MySQL
DHTML, XML, HTML
LoadRunner, Quality center, Performance center, Jmeter
Apache, Tomcat, Weblogic, WebSphere, IIS
RUP, Agile, Waterfall, Performance Testing

Involved in collecting and analyzing business requirement


Involved in creating, reviewing and publishing performance test plan and preparing test
cases.
Generated the automated scripts using Load Runner and modified them according to the
changes in test data and functionality of the business process in web(http/html) protocol
Manually correlated the dynamic values like session id, view state and parameterized the
constant values to replay the scripts for different users.
Enhanced the scripts in vugen by adding transaction, checkpoints, pacing.
Created Rendezvous points to simulate a scenario of multiple users performing the same
action simultaneously.
Conducted performance testing by creating Virtual Users and Scenarios using LoadRunner.
Prepared Reports using Analysis including Database Monitors, Network Monitor graphs,
User Graphs, Error Graphs, Transaction graphs and Web Server Resource Graphs.
Identified problematic elements using the Load Runner Analysis tool and reported to the
management

Environment: Windows, HPUX, AIX, JavaScript, Oracle, C, C++, WebSphere, Apache, WebLogic,

SQL server, IE, XML, SSH, Quality Center, LoadRunner.


Education:
Masters in software engineering NYIT, NY.
Certification:

Вам также может понравиться