Combining queries while preserving order in SQL - Help! - Mailing list pgsql-sql

From Casey Allen Shobe
Subject Combining queries while preserving order in SQL - Help!
Date
Msg-id 200212021346.38338.cshobe@osss.net
Whole thread Raw
Responses Re: Combining queries while preserving order in SQL - Help!
List 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 by date:

Previous
From: Joel Burton
Date:
Subject: Re: Min and Max
Next
From: Joel Burton
Date:
Subject: Re: Accumulative Queries?