🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.vdbase.data.sql
Article #28

Re: Query Trouble

#28
From: Steve Koterski
Date: Thu, 11 Feb 1999 00:00
30 lines
1740 bytes
On Thu, 11 Feb 1999 13:28:22 -0500, "Bert Vergeer"
<av-base.sys@sympatico.ca> wrote:

>Sorry for not being specific enough.  I have been working in both the
>ISQL(part of SQL Server) and this statement below works, but using this in
>Vdbase, this doesn't work.  I am building my SQL statement in the SQL
>property of the query object.  My SQL statement goes like this:
>
>select * from "...\specserve.dbf" where compldate = Null
>
>except I am getting an error in the where clause.

In standard SQL, one uses the IS NULL predicate to check a column against a
NULL value. Try this variation:

  SELECT *
  FROM "...\specserve.dbf"
  WHERE compldate IS NULL

The IS NULL predicate can also be used with the NOT operator.

  SELECT *
  FROM "...\specserve.dbf"
  WHERE compldate IS NOT NULL

//////////////////////////////////////////////////////////////////////////
Steve Koterski                       "For people who like peace and quiet:
Technical Publications               a phoneless cord."
INPRISE Corporation                                             -- Unknown
http://www.inprise.com/delphi
Technical Details
Message-ID: <36c32d5c.10019990@forums.inprise.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <79ur35$jg92@forums.borland.com> <79v7c2$l3g2@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ff5a1,e92ddfa7d52fce8f
X-Google-Attributes: gidff5a1,public
From: skoterski@NOSPAMinprise.com (Steve Koterski)
Subject: Re: Query Trouble
Date: 1999/02/11
Message-ID: <36c32d5c.10019990@forums.inprise.com>
X-Deja-AN: 443318113
Content-Transfer-Encoding: 7bit
References: <79ur35$jg92@forums.borland.com> <79v7c2$l3g2@forums.borland.com>
Content-Type: text/plain; charset=us-ascii
Organization: INPRISE Corporation, Technical Publications
Mime-Version: 1.0
Reply-To: skoterski@NOSPAMinprise.com
Newsgroups: borland.public.vdbase.data.sql