S_Offene_Auftraege_queries.txt 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. CREATE VIEW [load].[current_date_Prognose_operativ]
  2. AS
  3. SELECT --[Bundeslaender Id] AS "Bundeslaender Id",
  4. [Invoice Date] AS "Order Date",
  5. --[Wochentage Id] AS "Wochentage Id",
  6. --[Arbeitstag Mofr] AS "Arbeitstag Mofr",
  7. --[Zaehler Mofr] AS "Zaehler Mofr",
  8. --[Summe Mofr] AS "Summe Mofr",
  9. --[Arbeitstag Mosa] AS "Arbeitstag Mosa",
  10. --[Zaehler Mosa] AS "Zaehler Mosa",
  11. --[Summe Mosa] AS "Summe Mosa",
  12. --[Feiertage Id] AS "Feiertage Id",
  13. --[Jahr] AS "Jahr",
  14. --[Arbeitstag Nr Jahr] AS "Arbeitstag Nr Jahr",
  15. --[Gesamt Arbeitstage] AS "Gesamt Arbeitstage"
  16. FROM [staging].[current_date_Prognose_operativ_fm]
  17. GO
  18. CREATE VIEW [load].[Offene_Auftraege]
  19. AS
  20. SELECT [Hauptbetrieb_ID] AS "Hauptbetrieb_ID",
  21. [Hauptbetrieb_Name] AS "Hauptbetrieb_Name",
  22. [Standort_ID] AS "Standort_ID",
  23. [Standort_Name] AS "Standort_Name",
  24. [Serviceberater] AS "Serviceberater",
  25. [Order Number] AS "Order Number",
  26. [Fabrikat] AS "Fabrikat",
  27. [Model] AS "Model",
  28. [Fahrzeug] AS "Fahrzeug",
  29. [Kostenstelle] AS "Kostenstelle",
  30. --[Marke] AS "Marke",
  31. [Kunde] AS "Kunde",
  32. --[Turnover_Type_Desc] AS "Turnover_Type_Desc",
  33. [Tage offen] AS "Tage offen",
  34. [DG] AS "DG",
  35. [Lohn] AS "Lohn",
  36. [Teile] AS "Teile",
  37. [Sonst.] AS "Sonst.",
  38. [Auftragsart] AS "Auftragsart",
  39. [Order Date] AS "Order Date",
  40. [Tage seit letzt. Stemp.] AS "Tage seit letzt. Stemp."
  41. FROM [staging].[Offene_Auftraege_fm]
  42. GO