Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sql syntax
Message
From
16/04/2005 08:29:36
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01005419
Message ID:
01005438
Views:
18
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform