🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Select NULL and Unique

#738
From: David Madison
Date: Wed, 08 Jul 1998 00:00
20 lines
1295 bytes
2 questions:

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.

Second question:

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
choose it as the active index after I have activated the query, or is
there a way to make the query SQL statement choose unique rows only?

I see the duplicate check box in the SQL query designer, but don't know
if this does it.

What happens if you activate a unique index after the query anyway? 
Does the index take precedence over the SQL statement, or simply act as
a subsequent filtering effect?
Technical Details
Message-ID: <35A3AD4A.5A37@compuserve.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ff5a1,6f7a5dab459b19d0,start
X-Google-Attributes: gidff5a1,public
From: David Madison <davidmadison@compuserve.com>
Subject: Select NULL and Unique
Date: 1998/07/08
Message-ID: <35A3AD4A.5A37@compuserve.com>
X-Deja-AN: 369604659
Content-Transfer-Encoding: 7bit
Organization: Another Netscape Collabra Server User
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.vdbase.data.sql