alter table my_schema.country add column religion text[];
update my_schema.country as c
set religion = r.religion
from (values
(array['Russian Orthodoxy', 'Islam'], 1),
(array['Buddhism', 'Taoism', 'Islam', 'Christianity'], 2),
(array['Catholicism', 'Islam', 'Judaism', 'Buddhism', 'Hinduism', 'Sikhism'], 3),
(array['Christianity', 'Islam'], 4),
(array['Christianity', 'Islam'], 5)
) as r (religion, country_id)
where r.country_id = c.country_id;
alter table my_schema.country add column bilingual boolean;
update my_schema.country as c
set bilingual = b.bilingual
from (values
(false, 1),
(false , 2),
(false, 3),
(true, 4),
(false, 5)
) as b (bilingual, country_id)
where b.country_id = c.country_id;
alter table my_schema.country add column national_day timestamp;
update my_schema.country as c
set national_day = n.national_day
from (values
(timestamp '1970-06-12 00:00:00', 1),
(timestamp '1970-10-01 00:00:00', 2),
(timestamp '1970-07-14 00:00:00', 3),
(timestamp '1970-07-01 00:00:00', 4),
(timestamp '1970-10-03 00:00:00', 5)
) as n (national_day, country_id)
where n.country_id = c.country_id;