By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,948 Members | 663 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,948 IT Pros & Developers. It's quick & easy.

Fiscal year in Postgres Database

P: 1
In Postgres how to get all in between fiscal year from starting and end date.My fiscal year starting from 1st july.

Suppose i have two date,one of them is '2014-05-17' that is starting date and another date '2017-12-17' that is end date. i want to get all in between fiscal year like below format:

fiscal_year
-----------
2014-2015

2015-2016

2016-2017
Nov 21 '17 #1
Share this Question
Share on Google+
1 Reply


P: 3
Select date_part('year', Date '2014-05-17')::Text ||' - '|| date_part('year', Date '2017-12-17')::Text
Dec 27 '18 #2

Post your reply

Sign in to post your reply or Sign up for a free account.