From 332e49f9d85d3b2b67c6c864533f77f6a4935e19 Mon Sep 17 00:00:00 2001 From: KammM Date: Tue, 19 Nov 2024 16:51:07 +0100 Subject: [PATCH] VWCUST_WINLINE_EMAIL_OUT_DD_CWLDATEN_DDVP: View added for indexing service --- ...ST_WINLINE_EMAIL_OUT_DD_CWLDATEN_DDVP].sql | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 DD-VMP02-DB01/SQL-Server/Sichten/[VWCUST_WINLINE_EMAIL_OUT_DD_CWLDATEN_DDVP].sql diff --git a/DD-VMP02-DB01/SQL-Server/Sichten/[VWCUST_WINLINE_EMAIL_OUT_DD_CWLDATEN_DDVP].sql b/DD-VMP02-DB01/SQL-Server/Sichten/[VWCUST_WINLINE_EMAIL_OUT_DD_CWLDATEN_DDVP].sql new file mode 100644 index 0000000..a7901bd --- /dev/null +++ b/DD-VMP02-DB01/SQL-Server/Sichten/[VWCUST_WINLINE_EMAIL_OUT_DD_CWLDATEN_DDVP].sql @@ -0,0 +1,47 @@ +use [DD_ECM] +go + +create view [VWCUST_WINLINE_EMAIL_OUT_DD_CWLDATEN_DDVP] +as +SELECT + --[mesokey] + --,[c000] + --,[c001] + --,[c002] + --,[c003] + --,[c004] + --,[c005] + --,[c006] + --,[c007] + --,[c008] + --,[c009] + 'invoice-flow@digitaldata.works' as 'E-Mail-From' + ,[c010] as 'E-Mail-To' + ,SUBSTRING(convert(VARCHAR(100),[c010]),(charindex('<',convert(VARCHAR(100),[c010]),0)+1),(charindex('>',convert(VARCHAR(100),[c010]),0)-(charindex('<',convert(VARCHAR(100),[c010]),0)+1))) as 'E-Mail-To_clean' + ,RTRIM(LTRIM([c016])) as 'E-Mail-Subject' + ,convert(date,[c012]) as 'E-Mail-Date' + --,[c013] + --,[c014] + --,[c015] + --,[c017] + --,[c018] + --,[c019] + --,[c020] + --,[c021] + --,[c022] + --,[c023] + --,[c024] + --,[c025] + --,[c026] + --,[c027] + --,[c028] + --,[c029] + --,[c030] + --,[c031] + --,[c032] + --,[c033] + --,[mesobin] + --,[mesocomp] + --,[mesoyear] + --,[ts] + FROM [DD_CWLDATEN_DDVP].[dbo].[T190]