Paul,
Couple of ways to do this.
1. Select iif(transfered,TransferedTo,DestName) as MyCol from
TableName Where not iif(transfered,TransferedTo,DestName) is null
2. Select * from (Select iif(transfered,TransferedTo,DestName)
as MyCol from TableName) TN Where not TN.Mycol is null
Use whichever you feel perform better.
Want to get rid of any other values? extend the WHERE condition.
Regards,
Saran.
Paul B. - 20 Apr 2006 16:13 GMT
Thanks Saran,
I couldn't get example 2 to work, but I did get the first one to work with
the inclusion of DISTINCT.
Thanks again for your help.
> Paul,
>
[quoted text clipped - 12 lines]
> Regards,
> Saran.