If in a query
| From: | Shaun | Date: | Sat, 27 Sep 2003 13:40:12 +0000 |
| Subject: | If in a query | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-30732@lists.php.net to get a copy of this message | ||
Hi,
is it possible to create a query with parameters such that it selects a
field if it isn't null?
for example:
SELECT
A.Column1,
A.Column2,
(if not null, B.Column1)
FROM Table1 A, Table2 B
Thanks for your help