Q
Problem solve Get help with specific problems with your technologies, process and projects.

Querying transactions and getting results ordered in single report

How can I query transactions by clients, then get a single report giving clients and transactions summed by months and clients?

Try doing something like the following:

 

 Select client, datepart(mm,datetimecolumn) month, sum(transactions) From table Where criteria Group by client, datepart(mm,datetimecolumn) Order by client, month

This is provided as is, and without a schema I can't provide or test the actual query you would use.

 

For More Information

Dig Deeper on Microsoft SQL Server Installation

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchBusinessAnalytics

SearchDataCenter

SearchDataManagement

SearchAWS

SearchOracle

SearchContentManagement

SearchWindowsServer

Close