Re: to pg - Mailing list pgsql-general

From Geoff Winkless
Subject Re: to pg
Date
Msg-id CAEzk6fcJE89tXxGH8BaD4nZ6W+gnmO0MaP3aVwdamP-_wr1Jkw@mail.gmail.com
Whole thread Raw
In response to to pg  (Ramesh T <rameshparnanditech@gmail.com>)
List pgsql-general
Surely just

CASE picked WHEN 'y' THEN load_id ELSE NULL END

or

CASE WHEN picked='y' THEN load_id ELSE NULL END

?

On 25 September 2015 at 12:08, Ramesh T <rameshparnanditech@gmail.com> wrote:
CREATE UNIQUE INDEX idx_load_pick ON  pick (case picked when picked='y' then load_id else null end );

how can i convert case expressed to postgres..above it is oracle.

any help appreciated... 

pgsql-general by date:

Previous
From: Ramesh T
Date:
Subject: to pg
Next
From: Ladislav Lenart
Date:
Subject: Re: to pg