test.Aftersales_Rechnungen_ben_AW_final.sql 463 B

12345678910111213141516171819
  1. SET QUOTED_IDENTIFIER ON
  2. GO
  3. SET ANSI_NULLS ON
  4. GO
  5. CREATE VIEW [test].[Aftersales_Rechnungen_ben_AW_final] AS
  6. SELECT year([Invoice_Date]) AS [Jahr]
  7. , [Hauptbetrieb_ID]
  8. , [Standort_ID]
  9. , [Fabrikat]
  10. , convert(decimal(10,2), sum([ben__Std_])) AS [ben_Std]
  11. FROM [transform].[Aftersales_Rechnungen_ben_AW_final]
  12. GROUP BY year([Invoice_Date]), [Hauptbetrieb_ID], [Standort_ID], [Fabrikat]
  13. GO
  14. SET QUOTED_IDENTIFIER OFF
  15. GO
  16. SET ANSI_NULLS OFF
  17. GO
  18. GO