Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting stats on repartition
Message
From
11/01/2011 16:36:57
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Getting stats on repartition
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01495766
Message ID:
01495766
Views:
106
I have a small report I need to make which consists of a status and a destination. Basically, I have a status table with 5 status. I have a destination with two destinations. Then, I have the export table which includes a reference to a status and to a destination. I need to obtain a repartition table which will lay out something like this:
Destination           Pending              Retry
My destination 1         12                  4
My destination 2         13                  2
So, the goal is to obtain that in one SQL and also include all status even if there are zero count in it.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform