Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help with other Select-SQL
Message
 
À
05/04/2001 21:46:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00492641
Message ID:
00492949
Vues:
17
Try this:

SELECT field1 AS site,COUNT(DISTINCT field2) AS Cells_working ;
FROM mytable ;
GROUP BY 1 ;
INTO CURSOR result

You were almost there. You just needed the DISTINCT keyword to count the number of *different* cells for each site.

--Brad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform