test.Aftersales_Rechnungen_Focus_Group.sql 557 B

1234567891011121314151617181920
  1. SET QUOTED_IDENTIFIER ON
  2. GO
  3. SET ANSI_NULLS ON
  4. GO
  5. CREATE VIEW [test].[Aftersales_Rechnungen_Focus_Group] AS
  6. SELECT year([Invoice Date]) AS [Jahr]
  7. , [Hauptbetrieb] AS [Hauptbetrieb_ID]
  8. , [Standort] AS [Standort_ID]
  9. , [Focus Group] AS [Parts_Focus_Group]
  10. , [Parts Number] AS [Parts_Make_Desc]
  11. , sum([Menge Focus]) AS [Menge_Focus]
  12. FROM [transform].[Aftersales_Rechnungen_Focus_Group]
  13. GROUP BY year([Invoice Date]), [Hauptbetrieb], [Standort], [Focus Group], [Parts Number]
  14. GO
  15. SET QUOTED_IDENTIFIER OFF
  16. GO
  17. SET ANSI_NULLS OFF
  18. GO
  19. GO