Hello,
I'm trying to do a count and I have never needed to really do this before,
so here it goes.
I have a table which contains local user info short name and uid and if it's
an admin account.
SELECT
COUNT(a.userid) AS Localusers,
(COUNT(a.winadmingroup) = 'YES') AS IsAdmin,
a.userid
FROM #Session.Schema#.r_localuserlist a, #Session.Schema#.adminsubnet b
WHERE b.oid like '#Session.Username#'
group BY a.userid
I'm trying to display a count similar to below ...
USERID LOCALUSERS ADMINS
10.1.1.3 24 2
I hope this makes sense...
Thanks,
- Charles
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application
http://www.houseoffusion.com/banners/view.cfm?bannerid=48
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211175
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54