select records by nearest value

Поиск
Список
Период
Сортировка
От e-letter
Тема select records by nearest value
Дата
Msg-id BANLkTi=Y1p9gyMR566Y71UgH3tLrv1mU7w@mail.gmail.com
обсуждение исходный текст
Ответы Re: select records by nearest value  (Frank Bax <fbax@sympatico.ca>)
Re: select records by nearest value  (e-letter <inpost@gmail.com>)
Список pgsql-novice
Readers,

A database is structured as follows:

1 text1
1000 text2
500 text3

where column 1 consists of integers. Is it possible to create query
that will select the most appropriate records for a sum of integers.
For example, if the target sum of integers is 50, is it possible to
select a set of records that will be closest to this value?

Thanks in advance.

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

Предыдущее
От: "Birchall, Austen"
Дата:
Сообщение: More WAL archiving/backup questions
Следующее
От: Frank Bax
Дата:
Сообщение: Re: select records by nearest value