Article View: borland.public.interbase.sql
Article #11333Re: MS SQL isnull equivalent
From: Craig Stuntz TeamB
Date: Wed, 27 Nov 2002 19:55
Date: Wed, 27 Nov 2002 19:55
26 lines
1602 bytes
1602 bytes
In article <3de51bfc$1@newsgroups.borland.com>, "Arno Brinkman" <bnewsgroups @ abvisie.nl> says... > SELECT > <select_list> > FROM > ATable > WHERE > AField IS NULL > UNION > SELECT > <select_list> > FROM > ATable > WHERE > AField IS NOT NULL > I recommend using UNION ALL here instead of UNION -- it's much faster. -Craig -- Craig Stuntz [TeamB] � Vertex Systems Corp. � Columbus, OH Delphi/InterBase Weblog : http://delphi.weblogs.com InterBase Perf. Monitor : http://delphi.weblogs.com/IBPerformanceMonitor InterBase PLANalyzer 1.1: http://delphi.weblogs.com/IBPLANalyzer
Technical Details
Message-ID:
<MPG.184eed3c23f7878e98a29d@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-04!sn-xit-08!supernews.com!nntp2.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3de512a8$1@newsgroups.borland.com> <3de51bfc$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 114a0e,60a1a383763d408d X-Google-Attributes: gid114a0e,public X-Google-ArrivalTime: 2002-11-27 11:59:34 PST From: Craig Stuntz [TeamB] <cstuntz@nospamplease.com (but use vertexsoftware to email)> Newsgroups: borland.public.interbase.sql Subject: Re: MS SQL isnull equivalent Date: Wed, 27 Nov 2002 14:55:29 -0500 Message-ID: <MPG.184eed3c23f7878e98a29d@newsgroups.borland.com> References: <3de512a8$1@newsgroups.borland.com> <3de51bfc$1@newsgroups.borland.com> Organization: Vertex Systems Corporation X-Newsreader: MicroPlanet Gravity v2.60 NNTP-Posting-Host: 65.86.87.242 X-Trace: newsgroups.borland.com 1038426838 65.86.87.242 (27 Nov 2002 11:53:58 -0800) Lines: 26 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-04!sn-xit-08!supernews.com!nntp2.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail