Re: nth_value out of more than n values returns null

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: nth_value out of more than n values returns null
Дата
Msg-id CAKFQuwZH2C=itB7h=S+0UiG5k=U4PsdaLKxsWenZ7GWFdAsDxA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: nth_value out of more than n values returns null  (Guyren Howe <guyren@gmail.com>)
Ответы Re: nth_value out of more than n values returns null
Re: nth_value out of more than n values returns null
Список pgsql-general
On Monday, November 4, 2024, Guyren Howe <guyren@gmail.com> wrote:
I’m trying to get the id of the 5,000,000th record, so I can join against it to get a name. I didn’t fully understand what the docs say there. What am I missing?

So just use “offset 5_000_000 limit 1”.  Bringing in a window function here seems unhelpful.

David J.

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