select * where a=1 if b=3

select * where a=1 if b=3

am 01.04.2006 17:43:16 von talthen.z-serwera.o2

Hello,
How can I do a select like this:
Select all records, where (record a=1 if record b=3) or (record a=record b)
?

Regards,
Talthen

Re: select * where a=1 if b=3

am 01.04.2006 17:55:30 von Shion

talthen.z-serwera.o2@nospam.pl wrote:
> Hello,
> How can I do a select like this:
> Select all records, where (record a=1 if record b=3) or (record a=record b)
> ?

SELECT * FROM table WHERE (a=1 AND b=3) OR (a=b);


//Aho

Re: select * where a=1 if b=3

am 02.04.2006 00:05:06 von talthen.z-serwera.o2

"J.O. Aho"

> SELECT * FROM table WHERE (a=1 AND b=3) OR (a=b);

Heh, of course it's it. I just spent too many hours on programming today.
Thanks.

Regards,
Talthen

Re: select * where a=1 if b=3

am 04.04.2006 17:42:41 von Helio Barbosa

Então vai dormir... simples...

--
Hélio,
Abraços