Re: Confused about writing this stored procedure/method.

Поиск
Список
Период
Сортировка
От Tim Landscheidt
Тема Re: Confused about writing this stored procedure/method.
Дата
Msg-id m3zkiylx7n.fsf@passepartout.tim-landscheidt.de
обсуждение исходный текст
Ответ на Confused about writing this stored procedure/method.  (JavaNoobie <vivek.mv@enzentech.com>)
Список pgsql-sql
(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



В списке pgsql-sql по дате отправления:

Предыдущее
От: Samuel Gendler
Дата:
Сообщение: Re: need magic to shuffle some numbers
Следующее
От: Tim Landscheidt
Дата:
Сообщение: Re: need magic to shuffle some numbers