feat(datamart): new query to check if the city state will be valid to process in tms

This commit is contained in:
2025-05-15 21:14:51 -05:00
parent f4a91614c1
commit 78c5da8e81
5 changed files with 95 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
export const validateCityState = `
select IdAdressen addressID,
x.Bezeichnung as name,
c.Bezeichnung as deliveryCondition,
c.Kurzbezeichnung as Abbreviation,
ort as cityState
--,*
from AlplaPROD_test1.dbo.t_Adressen (nolock) x
left join
AlplaPROD_test1.[dbo].[T_Lieferkonditionen] (nolock) c
on x.IdLieferkondition = c.IdLieferkondition
WHERE c.Kurzbezeichnung not in ('exw') and ort not like '%,%'
`;