Need to transfer numeric columns with numbers like '201 711' and '201 806' to dates like '2017-11-01' and '2018-06-01' ('YYYY-MM-01'). When I try this
select to_date(debt_max_period,'YYYY-MM') as date1 from debt;
I get
SQL Error [42883]: ERROR: function to_date(numeric, unknown) does not exist.
Will be thankful for any ideas!