Extract month name and year from timestamp to same column
Solution 1:
Example for you:
select
TO_CHAR(created_at, 'Month') AS "Month",
TO_CHAR(created_at, 'YYYY') AS "Year",
trim(TO_CHAR(created_at, 'Month')) || ', ' || trim(TO_CHAR(created_at, 'yyyy')) as mydate
from acc_facts
Result data:
January 2022 January, 2022
January 2022 January, 2022
May 2022 May, 2022
March 2022 March, 2022