Article View: borland.public.vdbase.data.sql
Article #751Re: Select NULL and Unique
From: David Madison
Date: Fri, 10 Jul 1998 00:00
Date: Fri, 10 Jul 1998 00:00
37 lines
1547 bytes
1547 bytes
David Madison wrote: > > Eryk Bottomley wrote: > > > > 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 > > Thanks, I'll give these a try. > > --David Eryk, I tried this with my table which has two fields. When I include both fields, it doesn't work, ie it includes blank fields in the field I have asked for IS NOT NULL. When I remove the second field from the select statement, it works! Is something broken? --David
Technical Details
Message-ID:
<35A6D9FF.4B33@compuserve.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<35A3AD4A.5A37@compuserve.com> <6o22f8$ktq3@forums.borland.com> <35A5016C.3450@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: David Madison <davidmadison@compuserve.com> Subject: Re: Select NULL and Unique Date: 1998/07/10 Message-ID: <35A6D9FF.4B33@compuserve.com> X-Deja-AN: 370391737 Content-Transfer-Encoding: 7bit References: <35A3AD4A.5A37@compuserve.com> <6o22f8$ktq3@forums.borland.com> <35A5016C.3450@compuserve.com> Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.vdbase.data.sql