🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Select NULL and Unique

#742
From: Eryk Bottomley
Date: Thu, 09 Jul 1998 00:00
19 lines
986 bytes
David,

>How do I create a SQL statement to NOT select fields that are blank.  It
>is a character field, and when I try select * from mdbf for mfield IS
>NOT NULL, I still get rows that contain the blank field in my result
>rowset.


SELECT * FROM MYTABLE WHERE (MYFIELD IS NOT NULL)

...is standard SQL syntax.

>How do I achieve the equivalient of a unique index, to eliminate
>duplicates in my rowset?  I have a unique index available, so do I


SELECT DISTINCT .....blah

Eryk
Technical Details
Message-ID: <6o22f8$ktq3@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <35A3AD4A.5A37@compuserve.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ff5a1,6f7a5dab459b19d0
X-Google-Attributes: gidff5a1,public
From: "Eryk Bottomley" <eryk@compuserve.com>
Subject: Re: Select NULL and Unique
Date: 1998/07/09
Message-ID: <6o22f8$ktq3@forums.borland.com>
X-Deja-AN: 369815273
References: <35A3AD4A.5A37@compuserve.com>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.vdbase.data.sql