psql code:
CREATE TABLE ref_lab_cohort_level
AS
SELECT cohort,initcap (TRIM (result_flag)) AS result_flag,
TRIM (cohort_level) AS cohort_level
FROM temp_labs_levels;
In above code, trim is function of PostgreSQL for trimming but it gives an error as follows:
function pg_catalog.btrim(numeric, unknown) does not exist