Hi,
Hope this is what you are looking for.
Code:
select location, department, count(*) as NumOfPCs
from tblCitrix
group by location, department
order by location, department
This would create list of locations, its relavant department and count of records per department, which you can loop through in your ASP page and display the location only when it changes, so that you get the Location_NAME displayed per location and display the other columns as such.
Feel free to post here for any clarifications.
Hope that helps.
Cheers!
_________________________
- Vijay G
Strive for Perfection