Created on 10-28-2019 08:48 AM - last edited on 10-28-2019 08:49 AM by cjervis
Hi,
What would the code be to return the first day of the current financial year in Impala?
e.g. '01-APR-2019'
Thanks.
Created 09-08-2021 03:59 AM
Hi
This should help
select if((month(now()) in (1,2,3)),concat(cast((year(now())-1) as string),'-04-01'),concat(cast(year(now()) as string),'-04-01')) as first_date;