Re: Oracle ==> Postgres View
David Rowley <dgrowleyml@gmail.com>
From: David Rowley <dgrowleyml@gmail.com>
To: Sam Stearns <sam.stearns@dat.com>
Cc: pgsql-sql@lists.postgresql.org
Date: 2024-10-15T21:46:01Z
Lists: pgsql-sql
On Wed, 16 Oct 2024 at 10:31, Sam Stearns <sam.stearns@dat.com> 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