Unix Technical Forum

IS NOT DISTINCT FROM ?

This is a discussion on IS NOT DISTINCT FROM ? within the DB2 forums, part of the Database Server Software category; --> I saw a presentation on SQL that's supported in DB2 UDB v8 for z/OS, and it mentioned that the ...


Go Back   Unix Technical Forum > Database Server Software > DB2

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 09:17 AM
Ian
 
Posts: n/a
Default IS NOT DISTINCT FROM ?


I saw a presentation on SQL that's supported in DB2 UDB v8 for z/OS, and
it mentioned that the following syntax:

A IS NOT DISTINCT FROM B

is equivalent to:

A = B or (A is null AND B is null)



There was some question whether this is present in DB2 LUW, but I can't
find it in the SQL reference for DB2 9 (and it doesn't work in DB2 V8).


Does anyone know?



Thanks,


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 09:17 AM
Serge Rielau
 
Posts: n/a
Default Re: IS NOT DISTINCT FROM ?

Ian wrote:
>
> I saw a presentation on SQL that's supported in DB2 UDB v8 for z/OS, and
> it mentioned that the following syntax:
>
> A IS NOT DISTINCT FROM B
>
> is equivalent to:
>
> A = B or (A is null AND B is null)


> There was some question whether this is present in DB2 LUW, but I can't
> find it in the SQL reference for DB2 9 (and it doesn't work in DB2 V8).

DB2 for LUW does not expose the syntax.

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab

IOD Conference
http://www.ibm.com/software/data/ond...ness/conf2006/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:47 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com