Re: help with query: advanced ORDER BY...

Поиск
Список
Период
Сортировка
От
Тема Re: help with query: advanced ORDER BY...
Дата
Msg-id 021501c619c1$dce426c0$6402a8c0@iwing
обсуждение исходный текст
Ответ на help with query: advanced ORDER BY...  (<me@alternize.com>)
Ответы Re: help with query: advanced ORDER BY...  (Michael Glaesemann <grzm@myrealbox.com>)
Re: help with query: advanced ORDER BY...  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Список pgsql-novice
> Something you may consider doing is creating a view that masks the
> screen_number in those cases, something like
>
> create view schedule_public_view as
> select theater_id
> , screen_date
> , screen_time
> , case when no_screen_number then 0 else screen_number  end as
> screen_number
> , movie_name
> from schedules;

wouldn't this be the same problem: pgsql not using the index for
screen_number anymore?

- thomas



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

Предыдущее
От: Michael Glaesemann
Дата:
Сообщение: Re: help with query: advanced ORDER BY...
Следующее
От: Michael Glaesemann
Дата:
Сообщение: Re: help with query: advanced ORDER BY...