Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sql syntax
Message
De
16/04/2005 08:29:36
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01005419
Message ID:
01005438
Vues:
17
This message has been marked as the solution to the initial question of the thread.
>sorry !
>
>Horaire.dbf
>iid I
>iemployeeid I
>cpauseid I
>cpauseid2 I
>nho1 N(5,2)
>nho2 N(5.2)
>
>employee.dbf
>iid
>etc...
>
>I want count ( Horaire.iemployeeid ) where (cpauseid and cpauseid2) # 0 OR cpauseid # 0 OR cpauseid2 # 0 ( condition = .T. )
>
>
select Employee.cName;
,     X.Total;
FROM FORCE (SELECT iemployeeid  ;
,     COUNT(*) Total;
       from horaire WHERE cpauseid#0 OR cpauseid2#0 GROUP BY 1) X ;
    join Employee on Employee.iid=X.iemployeeid;
    ORDER BY 1
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform