Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting stats on repartition
Message
De
11/01/2011 16:52:13
 
 
À
11/01/2011 16:36:57
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01495766
Message ID:
01495768
Vues:
34
A SQL like this will get the status but will omit the status having no entry:
SELECT ExportDestination.Title,ExportStatus.Title_E,Temp.CountRecord
FROM
(SELECT Export.NoExportStatus,Export.NoExportDestination,COUNT(*) AS CountRecord
 FROM Export (NOLOCK)
 GROUP BY Export.NoExportStatus,Export.NoExportDestination) Temp
INNER JOIN ExportDestination ON Temp.NoExportDestination=ExportDestination.Numero
INNER JOIN ExportStatus ON Temp.NoExportStatus=ExportStatus.Numero
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform