Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using count() in SQL Select
Message
From
30/01/2004 14:38:48
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00872467
Message ID:
00872494
Views:
13
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
Previous
Reply
Map
View

Click here to load this message in the networking platform