select * where a=1 if b=3
am 01.04.2006 17:43:16 von talthen.z-serwera.o2Hello,
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
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
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
"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
Então vai dormir... simples...
--
Hélio,
Abraços