Re: garbage data back

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: garbage data back
Дата
Msg-id CAKFQuwYOoHxDgO3dBOdFGgnanO=iVtaVP1JgK1cnVTGd9_xR2w@mail.gmail.com
обсуждение исходный текст
Ответ на Fwd: garbage data back  (Brad White <b55white@gmail.com>)
Ответы Re: garbage data back  (Brad White <b55white@gmail.com>)
Список pgsql-general
On Mon, Mar 6, 2023 at 1:48 PM Brad White <b55white@gmail.com> wrote:
LOL

Joke's on me.

Here's the relevant part of the view

SELECT ...
    "Order Items"."ID" AS "OrderItemID",
    ...
    (("Orders"."ID" || '-'::text) || "Order Items"."ID") AS "FileKey"

Wait, then why are the Item IDs different?

Here are the results again, with the FileKey field expanded a bit.
image.png

I don't understand what you are questioning...FileKey is a hyphenated concatenation of the ORDER Id and the ORDER ITEM Id, while OrderItemID is just the later - and the suffix of the former matches the later.

David J.
Вложения

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

Предыдущее
От: Brad White
Дата:
Сообщение: Fwd: garbage data back
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Fwd: garbage data back