Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Count(distinct field) work incorrect
Message
De
21/02/2006 15:54:23
Cristian Tenea
Aquila Part Prod Com
Ploiesti, Roumanie
 
 
À
20/02/2006 05:09:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01097464
Message ID:
01097883
Vues:
22
>>Hi,
>>
>>I try to find distinct values in a group with a query like this:
>>
>>select id1, count(distinct 'field') as cntfld form table1 group by id1
>>
>>and values in cntfld is incorrect, different from second aproach like this:
>>
>>select distinct 'field' from table1 where id1=somevalue
>>
>>number of records in second case is different from cntfld form first case for same value of id1
>>
>>In SQL server first form of select works ok. In VFP is something wrong?
>>
>>Thanks
>
>post a 2 records example

sorry, my mistake
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform