Re: SQL Order Question

Поиск
Список
Период
Сортировка
От Richard Broersma Jr
Тема Re: SQL Order Question
Дата
Msg-id 20060504194021.50631.qmail@web31811.mail.mud.yahoo.com
обсуждение исходный текст
Ответ на Re: SQL Order Question  (<operationsengineer1@yahoo.com>)
Ответы Re: SQL Order Question  (<operationsengineer1@yahoo.com>)
Список pgsql-novice
> > On 5/5/06, operationsengineer1@yahoo.com
> > <operationsengineer1@yahoo.com> wrote:
> > > hi all,
> > >
> > > i want to order contract numbers id ascending
> > order,
> > > with the exception of 'BTS' that I want to display
> > > first.  the contract numbers are numeric and 'BTS'
> > is
> > > text.  the numeric values come first when i sort
> > in
> > > asc order - as expected.  how can i get BTS (id =
> > 0)
> > > to come up as the first value in my query?
> > I'm not sure I fully understand the structure of
> > your
> > data ... do BTS and the numeric contract numbers
> > appear in the same column?>
> yes.

Perhaps you could union two selects together?

Regards,



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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: SQL Order Question
Следующее
От: "Christian Hofmann"
Дата:
Сообщение: SELECT FOR UPDATE - release lock?