SET QUOTED_IDENTIFIER ON GO SET ANSI_NULLS ON GO CREATE VIEW [dbo].[TFM_fOffenePosten95_3] AS SELECT [TFM_vfOffenePosten].[Kontonummer] ,[TFM_vfOffenePosten].[Name (Adressattyp Unternehmen)] ,[TFM_vfOffenePosten].[Rechnungs-Nr] ,[TFM_vfOffenePosten].[Fälligkeit] ,[TFM_vfOffenePosten].[Betrag Soll] ,[TFM_vfOffenePosten].[Betrag Haben] ,[TFM_vfOffenePosten].[Saldo] ,[TFM_vfOffenePosten].[S H Saldo] ,[TFM_vfOffenePosten].[Gegenkonto] ,[TFM_vfOffenePosten].[Fällig] ,[TFM_vfOffenePosten].[Ausgleich] ,[TFM_vfOffenePosten].[Belegfeld 2] ,[TFM_vfOffenePosten].[Kz ] ,[TFM_vfOffenePosten].[Buchungstext] ,[TFM_vfOffenePosten].[USt %] ,[TFM_vfOffenePosten].[Stapel-Nr ] ,[TFM_vfOffenePosten].[BSNr] ,[TFM_vfOffenePosten].[Postensperre] ,[TFM_vfOffenePosten].[KOST1 - Kostenstelle] ,[TFM_vfOffenePosten].[KOST2 - Kostenstelle] ,[TFM_vfOffenePosten].[Postleitzahl] ,[TFM_vfOffenePosten].[Ort] ,[TFM_vfOffenePosten].[Kurzbezeichnung] ,[TFM_vfOffenePosten].[Mahnstufe] ,[TFM_vfOffenePosten].[Mandant ID] ,[TFM_vfOffenePosten].[Länge_Rechnungsnummer] ,[TFM_vfOffenePosten].[Beleg] ,[TFM_vfOffenePosten].[Kunde] ,[TFM_vfOffenePosten].[Standort] ,[TFM_vfOffenePosten].[Konto_1_Stelle] ,[TFM_vfOffenePosten].[Fälligkeitsdatum] ,[TFM_vfOffenePosten].[Invoice Date] ,[TFM_vfOffenePosten].[Rechnungsdatum] ,[TFM_vfOffenePosten].[Fälligkeit_Jahr] ,[TFM_vfOffenePosten].[Fälligkeit_Monat] ,[TFM_vfOffenePosten].[Fälligkeit_Tag] ,[TFM_vfOffenePosten].[Fälligkeit_Datum_Zahl] ,[TFM_vfOffenePosten].[Fälligkeit_Zahl] ,[TFM_vfOffenePosten].[Fälligkeit_Zeichen] ,[TFM_vfOffenePosten].[Anz_Stellen_Fälligkeit] ,[TFM_vfOffenePosten].[Tage] ,[TFM_vfOffenePosten].[Staffel] ,[TFM_vfOffenePosten].[Sel Name] ,[TFM_vfOffenePosten].[Kostenstelle] ,[TFM_vfOffenePosten].[Bereich] ,[TFM_vfOffenePosten].[Forderungsart] ,[TFM_vfOffenePosten].[Abwarten] ,[TFM_vfOffenePosten].[Gesamt offen KD (Info)] ,[TFM_vfOffenePosten].[offen] ,[TFM_vfOffenePosten].[Rechnungsbetrag] ,[TFM_vdStandort].[Hauptbetrieb_Name] ,[TFM_vdStandort].[Standort_Name] FROM [dbo].[TFM_vfOffenePosten] LEFT JOIN [dbo].[TFM_vdStandort] ON [TFM_vfOffenePosten].[Mandant ID] = [TFM_vdStandort].[Mandant ID] --AND [TFM_vfOffenePosten].[Hauptbetrieb_ID] = [TFM_vdStandort].[Hauptbetrieb_ID] AND [TFM_vfOffenePosten].[Standort] = [TFM_vdStandort].[Standort_ID] GO SET QUOTED_IDENTIFIER OFF GO SET ANSI_NULLS OFF GO GO