🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #887

Re: How to find duplicated values

#887
From: Vladimir Stefanovic
Date: Wed, 23 Feb 2005 14:44
57 lines
2696 bytes
Thank you very much.

-- 
Best regards,
Vladimir Stefanovic
"Viatcheslav V. Vassiliev" <support@oledbdirect.com> wrote in message 
news:421b9f2e$1@newsgroups.borland.com...
> This should work, at least from ADO - Jet supports subqueries:
>
> select * from
> (select MyText, count(MyText) as c
> from SomeTable
> group by lang1_MyText)
> where c > 1
>
> Note also that Counter is reserved work and should be enclosed in 
> brackets - [Counter].
>
> //------------------------------------------
> Regards,
> Vassiliev V. V.
> http://www.managed-vcl.com - using .Net objects in Delphi for Win32 + 
> ADO.Net
> http://www.oledbdirect.com - The fastest way to access MS SQL Server,
> MS Jet (Access) and Interbase (through OLEDB)
>
>
> "Vladimir Stefanovic" <antivari@po.sbb.co.yu> �������/�������� � �������� 
> ���������: news:421b7242$2@newsgroups.borland.com...
>>I have a table (MS ACCESS) with 2 fields:
>>
>>   1 field: MyText (TEXT)
>>   2 field: MyBool (BOOL)
>>
>> ...which both should make a primary key, but first I
>> have somehow to get rid of duplicates:
>>
>> I need an SQL which can find duplicates for me by
>> any of those tools: SQL Explorer, MS Access Query or
>> BCB6&ADOQuery.
>>
>> Also why this do not work with any of the tools mentioned:
>>
>> // This is only for a single field, not for both
>> select MyText, count(MyText) as Counter
>> from SomeTable
>> group by MyText
>> where Counter>1
>>
>>
>>
>> -- 
>> Best regards,
>> Vladimir Stefanovic
>>
>
> 
Technical Details
Message-ID: <421c96bd@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <421b7242$2@newsgroups.borland.com> <421b9f2e$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,acc64c952c569a2b
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII
From: "Vladimir Stefanovic" <antivari@po.sbb.co.yu>
Newsgroups: borland.public.cppbuilder.database.ado
References: <421b7242$2@newsgroups.borland.com> <421b9f2e$1@newsgroups.borland.com>
Subject: Re: How to find duplicated values
Date: Wed, 23 Feb 2005 15:44:16 +0100
Lines: 59
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 82.117.212.65
Message-ID: <421c96bd@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1109169853 82.117.212.65 (23 Feb 2005 06:44:13 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail