public inbox for [email protected]
help / color / mirror / Atom feedFrom: David Rowley <[email protected]>
To: Sam Stearns <[email protected]>
Cc: [email protected]
Subject: Re: Oracle ==> Postgres View
Date: Wed, 16 Oct 2024 10:46:01 +1300
Message-ID: <CAApHDvo_oS=-roQf29NJ0UQKkYEhSPb3oxqFEz5t-93n0ttb6Q@mail.gmail.com> (raw)
In-Reply-To: <CAN6TVjmdUGuFrCn4HcUd4Q2uvNXZSEe_4TXG7neQip_m6dGiBQ@mail.gmail.com>
References: <CAN6TVjmdUGuFrCn4HcUd4Q2uvNXZSEe_4TXG7neQip_m6dGiBQ@mail.gmail.com>
On Wed, 16 Oct 2024 at 10:31, Sam Stearns <[email protected]> wrote:
> coalesce(CASE WHEN impact_category='BULK_RATE_REQUEST', 1, -- To handle Portal's category for the old RIP
> 'CONTRACT_BULK_RATE', 1,
> 'SPOT_BULK_RATE', 2,
> 'CONTRACT_HISTORY', 3,
> 'SPOT_HISTORY', 4,
> 'RATE_SUBMISSION', 5,
> 'SPOT_BACKHAUL' THEN 6 END , 0),
>
> Would anyone be able to advise how to correct this for Postgres, please?
Have a look at the syntax of your case statement and check it against [1].
David
[1] https://www.postgresql.org/docs/current/functions-conditional.html
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: Oracle ==> Postgres View
In-Reply-To: <CAApHDvo_oS=-roQf29NJ0UQKkYEhSPb3oxqFEz5t-93n0ttb6Q@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox