Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using count() in SQL Select
Message
De
30/01/2004 14:38:48
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00872467
Message ID:
00872494
Vues:
14
Sorry Sergey,

i have no time to think, but...
SELECT count( distinct type + STR(ORDER_NO,10) ) as NUM_ORDS 
FROM mytable 
group by EMPLOYEE
or
SELECT type, count( distinct ORDER_NO ) as NUM_ORDS 
FROM mytable 
group by EMPLOYEE, type
Fabio
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform