Combining queries while preserving order in SQL - Help!

Поиск
Список
Период
Сортировка
От Casey Allen Shobe
Тема Combining queries while preserving order in SQL - Help!
Дата
Msg-id 200212021346.38338.cshobe@osss.net
обсуждение исходный текст
Ответы Re: Combining queries while preserving order in SQL - Help!  (Joel Burton <joel@joelburton.com>)
Список pgsql-sql
Hi there,

I need to do the following in one SQL query:

select field1, field2, field3, field4, field5 from table where field6 < 5
order by field1

And a totals line which shows the sum for each column.

The important part is that I need to preserve the order by of the first query.

Is there any way to do this in one query?

Thank you,

--
Casey Allen Shobe, Open Source Software Solutions
cshobe@osss.net / http://www.osss.net / 770-653-4526


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

Предыдущее
От: Joel Burton
Дата:
Сообщение: Re: Min and Max
Следующее
От: Joel Burton
Дата:
Сообщение: Re: Accumulative Queries?