Re: How to re-sort a sorted query?

Поиск
Список
Период
Сортировка
От Yudie
Тема Re: How to re-sort a sorted query?
Дата
Msg-id 003001c4bc39$dd0470b0$a101a8c0@home.axiontech.com
обсуждение исходный текст
Ответ на How to re-sort a sorted query?  ("Yudie" <yudie@axiontech.com>)
Список pgsql-sql
> select * from
>   (select distinct on (storenumber), itemsku, storenumber,price
>    from storeproduct where itemsku='10001' 
>    order by storenumber, price) ss
> order by price;
> 
> regards, tom lane

Thanks tom, this is working. I never thought it could be done like this.

yudie

> 
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
> 
>                http://archives.postgresql.org
>



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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: How do you compare (NULL) and (non-NULL)?
Следующее
От: Markus Schaber
Дата:
Сообщение: Select Instead on a table