SQL Question - Mailing list pgsql-general

From Matthew
Subject SQL Question
Date
Msg-id 183FA749499ED311B6550000F87E206C1FD049@srv.ctlno.com
Whole thread Raw
Responses Re: SQL Question
List pgsql-general
I'm trying to do some type of conditional select statement and I have no
idea how.

What I would like is something like this (using pseudo sql)

select (if(col1>1) true else if (col1<= 1) false) from foo;

does that make sense?  Basically I want one column of my result set to be
true or false based on some logic.  I can do it in code and have my program
handle it, but I was hoping to do it in SQL.

Thanks,

Matt O'Connor

pgsql-general by date:

Previous
From: "Brian C. Doyle"
Date:
Subject: Win32 Postgresql
Next
From: "Roderick A. Anderson"
Date:
Subject: Re: Update through views?