Files
IPZ_1/nifi/sql/load/05_dim_organization.sql
2026-05-17 18:26:56 +02:00

11 lines
428 B
SQL

INSERT INTO DIM_ORGANIZATION (org_id, name, region, country, club_partner_status, founded_year, social_media_followers_m)
VALUES (
${organization_id},
'${name}',
NULLIF('${region}', ''),
NULLIF('${country}', ''),
NULLIF('${club_partner_status}', ''),
TO_NUMBER(NULLIF('${founded_year}', ''), '9999'),
TO_NUMBER(NULLIF('${social_media_followers_m}', ''), '9990.99', 'NLS_NUMERIC_CHARACTERS=''.,''')
)