Create infra scripts

This commit is contained in:
2026-02-02 16:38:16 +02:00
parent dd5c88e3bb
commit 68382d62a1
5 changed files with 425 additions and 4 deletions

View File

@@ -1,6 +1,11 @@
SELECT
k.kodas AS client_code,
trim(concat_ws(' ', k.vardas, k.pavarde)) AS name,
regexp_replace(
trim(concat_ws(' ', k.vardas, k.pavarde)),
'\s+',
' ',
'g'
) AS name,
trim(concat_ws(', ',
concat_ws(' ', g.pav, k.namas, NULLIF(NULLIF(k.butas::text, '0'), '')),
m.pav,