
July 31st, 2005, 04:42 AM
|
 |
Senior Fire Wizard
|
|
Join Date: Feb 2005
Location: Ashford, Kent. England
|
|
Quote: | Originally Posted by leon_i_ Hi, m tryin to count distinct serialNumbers for each particular WorkOrder.
I wrote this code and its not workin...i am new to access SQL database programming
SELECT count(distinct SerialNumber), WorkOrder
FROM Results
GROUP BY WorkOrder;
pliz help |
Code:
SELECT WorkOrder, COUNT(SerialNumber) AS c FROM Results GROUP BY WorkOrder
__________________
And he picked it all up... in his pick-up.

Friends of Shemzilla
|