From: Tim Landscheidt <tim@tim-landscheidt.de>
To: pgsql-sql@postgresql.org
Subject: Re: Confused about writing this stored procedure/method.
Date: Wed, 24 Aug 2011 14:07:24 +0000
Message-ID: <m3zkiylx7n.fsf@passepartout.tim-landscheidt.de> (raw)
References: <1314023902196-4723656.post@n5.nabble.com>
(anonymous) wrote:
> [...]
> I intend pass the number of the month(say 1 for January , 2 for February
> etc>) as the parameter to this method and return a number that corresponds
> to the index of the month in the new order , say I pass 8 for August , I
> return 11 , in order to get the index of August in he financial year
> calendar somewhat like this
> [...]
You don't need any function for that, just use "ORDER BY
Month < 4, Month".
Tim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tim@tim-landscheidt.de
Subject: Re: Confused about writing this stored procedure/method.
In-Reply-To: <m3zkiylx7n.fsf@passepartout.tim-landscheidt.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox