sum of row values..

From: "Fabrizio Mazzoni" <fabrizio(at)macron(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: sum of row values..
Date: 2001-06-13 13:07:32
Message-ID: 000901c0f409$cf2ba180$4f00a8c0@fabrizio
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

hi all..
i have a big problem..why is this impossible in postgresql:

table test: (1 column)

first
------
1
2
3
4
5
6
7
8
9

select first as value, value*2 as result from test;

How can i accomplish this?? I need it for a very big table that will use
also functions in it..

Thanks..

fabrizio(at)macrongolf(dot)com
http://macrongolf.com
http://eteampoint.com
http://macron.com

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruno Wolff III 2001-06-13 13:16:56 Re: [SQL] ORDER BY what?
Previous Message Alexey Borzov 2001-06-13 12:33:40 Re[2]: Re: very big problem with NULL