Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Code
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00836081
Message ID:
00836089
Views:
15
This message has been marked as the solution to the initial question of the thread.
Bernhart,

You could try something like:
SELECT COUNT(*) AS lnCnt , SUM(IIF(iemployeeid = 143,1,0)) ;
 FROM Trimestre_Lignes WHERE !DELETED() INTO CURSOR temp
Cheers,

Zoran

>Hi All,
>
>I would like to create only one requery which gives me two result.
>
>Firstly the number of records.
>Secondly the Number of record for which iemployeid = 143.
>
>I have difficult To find the Good code.
>
>
> SELECT COUNT( RECNO() ) AS lnCnt , COUNT(iemployeeid = 143 ) ;
>  FROM Trimestre_Lignes WHERE !DELETED() INTO CURSOR temp
>
>
>Thank in advance for the answer.
>
>bernhart
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform