| От | Richard Broersma Jr |
|---|---|
| Тема | Re: aggregate function ? |
| Дата | |
| Msg-id | 93981.28651.qm@web31807.mail.mud.yahoo.com обсуждение |
| Ответ на | Re: aggregate function ? (Raimon Fernandez <coder@montx.com>) |
| Ответы |
Re: aggregate function ?
|
| Список | pgsql-novice |
--- Raimon Fernandez <coder@montx.com> wrote:
> Is this the correct way to add a number to each sum_value ?
> (SELECT deure FROM assentaments WHERE oid=180108)+ sum
^^^^^^
One question why did you choose oid=180108 to identify the row to use for adding to your sum. Is
there some sort of hidden relationship here that you can use craft a better select query?
Basically, the question to ask is, what is the relationship between the rolling Sum and the
initial "shifting" value.
Regards,
Richard Broersma Jr.
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера