Re: [SQL] variables in SQL??

Поиск
Список
Период
Сортировка
От Volker Paul
Тема Re: [SQL] variables in SQL??
Дата
Msg-id 399A7D6C.20593252@dohle.com
обсуждение исходный текст
Ответ на variables in SQL??  ("Francisco Hernandez" <xy0xy0@earthlink.net>)
Список pgsql-general
> what im trying to do is have a Sum of a colum.. as it goes forwards with the
> cursor..
> like so:
>
> Price|Sum
> 5|5
> 4|9
> 10|19
> 2|21
> 7|28

I think what you mean is called running sum, I had the same problem
before, and I found no other solution than creating a column for it,
and calculating its values by a function.

Yours,

V.Paul

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