1 2 3 4 5 6 7
|
TRANSFORM Count([Table réalisé].[Numéro de voyage]) AS [CompteDeNuméro de voyage]
SELECT [Table théorique].[Code fournisseur], [Table théorique].Origin, [Table théorique].Destination
FROM [Table théorique] INNER JOIN [Table réalisé] ON ([Table théorique].Destination = [Table réalisé].[Lib plateforme arrivée]) AND ([Table théorique].Origin = [Table réalisé].[Lib plateforme départ]) AND ([Table théorique].[Code fournisseur] = [Table réalisé].[Code fournisseur])
GROUP BY [Table théorique].[Code fournisseur], [Table théorique].Origin, [Table théorique].Destination
ORDER BY [Table théorique].[Code fournisseur], [Table théorique].Origin, [Table théorique].Destination
PIVOT Format([Date début opé (jj/mm/aaaa)],"mm") In ("01","02","03","04","05","06","07","08","09","10","11","12"); |
Partager