Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Count
Message
From
12/11/2009 06:49:02
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Re: Count
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01434354
Message ID:
01434361
Views:
49
thank you for reply,
i try as below error messge Command contains unrecognized phrase/keyword at line2
SELECT office , department, COUNT(office) AS total_cfil, ;
  SUM(IIF(flg="!", 1, 0)) As subtotal ,;
 COUNT(*)-SUM(IIF(flg='1',1,0)) AS newfield  ;
 FROM New1 ;
 GROUP BY department,office INTO TABLE Mucurt
>
>SUM(IIF(flg="!", 1, 0) As subtotal
>
>>
>>i need help to count again the same field as below
>>
>>
>>SELECT office , department,count(office) as total_cfil && and  count(office) as sub-total where flg="1" and newfield have( total_cfil -sub-total) ;
>>from new1 ;
>>group by department,office INTO table mucurt
>>
>>
>>thanks
Previous
Reply
Map
View

Click here to load this message in the networking platform