VWCUST_WINLINE_EMAIL_OUT_DD_CWLDATEN_DDVP: View added for indexing service

This commit is contained in:
KammM 2024-11-19 16:51:07 +01:00
parent c948b5c613
commit 332e49f9d8

View File

@ -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]