1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| USE [WinM9DW]
GO
/****** Objet*: View [dbo].[View_1] Date de génération du script*: 03/03/2008 14:37:23 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER VIEW [dbo].[View_1]
AS
SELECT dbo.dimCommande.NUMERO, dbo.dimCommande.LIBELLE AS LIB_COM, dbo.dimAnalytique.LIBELLE AS LIB_ANA, dbo.dimCompte.COMPTE,
dbo.dimEngagement.NUMERO AS NUM_ENGA, dbo.dimEngagement.LIBELLE AS LIB_ENGA, dbo.dimFacture.NUMERO AS NUM_FAC,
dbo.dimFacture.LIBELLE AS LIB_FAC, dbo.dimMandat.NUMERO AS NUM_MAN, dbo.dimMandat.LIBELLE AS LIB_MAN,
dbo.dimMarche.NUMERO AS NUM_MAR, dbo.dimMarche.LIBELLE AS LIB_MAR, dbo.dimTiers.NOM_TIERS, dbo.dimTemps.DATE AS DATE_MAN,
dbo.dimTemps.DATE AS DATE_COM
FROM dbo.FactSuiviMarche INNER JOIN
dbo.dimAnalytique ON dbo.FactSuiviMarche.ID_DIM_ANALYTIQUE = dbo.dimAnalytique.ID_DIM_ANALYTIQUE INNER JOIN
dbo.dimCommande ON dbo.FactSuiviMarche.ID_DIM_COMMANDE = dbo.dimCommande.ID_DIM_COMMANDE INNER JOIN
dbo.dimCompte ON dbo.FactSuiviMarche.ID_DIM_COMPTE = dbo.dimCompte.ID_DIM_COMPTE INNER JOIN
dbo.dimEngagement ON dbo.FactSuiviMarche.ID_DIM_ENGAGEMENT = dbo.dimEngagement.ID_DIM_ENGAGEMENT INNER JOIN
dbo.dimFacture ON dbo.FactSuiviMarche.ID_DIM_FACTURE = dbo.dimFacture.ID_DIM_FACTURE INNER JOIN
dbo.dimMandat ON dbo.FactSuiviMarche.ID_DIM_MANDAT = dbo.dimMandat.ID_DIM_MANDAT INNER JOIN
dbo.dimMarche ON dbo.FactSuiviMarche.ID_DIM_MARCHE = dbo.dimMarche.ID_DIM_MARCHE INNER JOIN
dbo.dimTemps ON dbo.FactSuiviMarche.ID_DIM_TPS_VAL = dbo.dimTemps.ID_DIM_TEMPS AND
dbo.FactSuiviMarche.ID_DIM_TPS_MAN = dbo.dimTemps.ID_DIM_TEMPS INNER JOIN
dbo.dimTiers ON dbo.FactSuiviMarche.ID_DIM_TIERS = dbo.dimTiers.ID_DIM_TIERS |
Partager