apply limit to sum function

Поиск
Список
Период
Сортировка
От e-letter
Тема apply limit to sum function
Дата
Msg-id CAET1fe7eu-Es13-Zn1oEV+nZVaQGZFa=v9w8t2JT-TditcfWRg@mail.gmail.com
обсуждение исходный текст
Ответы Re: apply limit to sum function  (Steve Crawford <scrawford@pinpointresearch.com>)
Список pgsql-novice
Readers,

 Is it possible to apply the 'sum' function, but limit the value and
 then show the tuples of the result? For example, the table has:

 text1, 10
 text2, 12,
 text3, 23

 Instead of applying the 'sum' function to all values, the request is
 to be able to select those values that result in a sum of a target
 value (e.g. < 22) and then return the tuples.

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

Предыдущее
От: Bartosz Dmytrak
Дата:
Сообщение: Re: Returning generated id after a transaction.
Следующее
От: Steve Crawford
Дата:
Сообщение: Re: apply limit to sum function