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

Поиск
Список
Период
Сортировка
От Michael Glaesemann
Тема Re: help with query: advanced ORDER BY...
Дата
Msg-id 9FAD6CD1-B940-43EB-8FFF-E6FF20DF037A@myrealbox.com
обсуждение исходный текст
Ответ на Re: help with query: advanced ORDER BY...  (<me@alternize.com>)
Список pgsql-novice
On Jan 15, 2006, at 11:15 , <me@alternize.com> <me@alternize.com> wrote:

> the movie schedules for theatres normally contains the information
> theater_id, screen_date, screen_time, screen_number, movie_name and
> should be outputed accordingly. it now happens to have some cinema
> multiplex owners who for some reasons do not want to publish the
> screen_number to the public - but the internal data we receive does
> contain that information.

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;

Michael Glaesemann
grzm myrealbox com




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

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