RE: boolean functions?

"Zabach, Elke" <[email protected]>
Newsgroups gmane.comp.db.sapdb.general
Message-ID <[email protected]>
Sven Köhler wrote:

> hi,
> 
> it's just a style question, but since
>    SELECT a OR b FROM table
> doesn't work, i had to find out that i can use
>    SELECT GREATEST(a, b) FROM table
> instead.
> 
> GREATEST sees to behave like OR, and LEAST seems to behave 
> like AND, but 
> this is only due the fact, that true seems to be "greater" than false.
> 
> Is there any better way instead using GREATEST?

As MaxDB does not support AND/OR in the select-list, this seems
to be the shortest (and 'best') way.

Elke
SAP Labs Berlin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.