Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread NULL and empty string?
Thu, Jul 12 2012 12:01 AMPermanent Link

IQA

Hi I know there's heaps of questions on NULL already, but is there an
easy way to TEST if a field is NULL or an empty string (i.e they did
have data in the field but deleted it and leaving the field as an empty
string as oppose to a NULL.

I'm trying to write a query and wondered if there's a way to test this
without saying IS NULL OR field = ""

Thanks,

Phil.
Thu, Jul 12 2012 12:21 AMPermanent Link

Raul

Team Elevate Team Elevate

Try

COALESCE(Field,'')=''

Raul

On 7/12/2012 12:01 AM, Phil wrote:
> Hi I know there's heaps of questions on NULL already, but is there an
> easy way to TEST if a field is NULL or an empty string (i.e they did
> have data in the field but deleted it and leaving the field as an empty
> string as oppose to a NULL.
>
> I'm trying to write a query and wondered if there's a way to test this
> without saying IS NULL OR field = ""
>
> Thanks,
>
> Phil.

Thu, Jul 12 2012 12:57 AMPermanent Link

IQA

Ahhh thanks Raul! Awesome.

COALESCE(Field,'')=''
Image