Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need Help in VB Codes
Message
De
26/03/2002 14:10:59
Evans Carl
System Answers Consulting, Inc
Big Lake, Minnesota, États-Unis
 
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00637268
Message ID:
00637431
Vues:
14
>Underneath is the SQL code I use to retrive data stored in SQL. I am trying to covert it into VB codes. It works when I do the COUNT only, but it won't let me do the DISTINCTCOUNT. Can anyone help me with this code to do the distinct count. Thanks in advance.
>
>SELECT * FROM QMIdouble WHERE edmemb IN (SELECT edmemb FROM
>QMIdouble Group by edmemb Having Count(DISTINCT(pmfdid + '-'+ pmfdsf)) > 1)

Sherry

Try changing to this - to see if this works for you

SELECT * FROM QMIdouble WHERE edmemb IN (SELECT edmemb FROM
QMIdouble Group by edmemb Having Count(DISTINCT pmfdid + '-'+ pmfdsf)= 1)

This way works for me...

Carl
¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°¤º°`°º¤ø¤º°¤º°
Carl Evans
CEO & President
System Answers Consulting, Inc.
MCSD .NET, ASP.NET, C#.NET, VB.NET,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform