I have a Postgres database that has a column for the month an event occurred in. This is formatted as a TEXT column type and has the fiscal year preceding the month name as shown below:
fiscal
-------
20-Jul
20-Aug
20-Jan
20-Apr
20-Feb
Say the fiscal in this case starts in Apr 2019 (and refers to the 2019-2020 fiscal year), how would a select query show this as a DATE column type? (assuming just using the first day of the month as the day)
So like below
fiscal real_date
--------------------
20-Jul 2019-Jul-1
20-Aug 2019-Aug-1
20-Jan 2020-Jan-1
20-Apr 2019-Apr-1
20-Feb 2020-Feb-1
20-Jul
should become2020-Jul-01
? Not2019
. – Andrew