Re: Need assistance with query
- From: "Garth" <Spam@xxxxxxx>
- Date: Sat, 1 Nov 2008 11:38:06 -0400
Try this.
http://smsug.ca/blogs/garth_jones/archive/2008/11/01/ou-count-of-pcs-not-reporting-within-1-day.aspx
This query will give you a count of all PC that meet a requirement for each OU.
"Dan Lewis" <waynelewis@xxxxxxxxx> wrote in message news:bb6840b9-a587-4a4f-8580-0dea2f3ffb1e@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I'm trying to build a report that will show each OU in AD and a count
of all computers in that OU and a count of computers that meet some
requirement in that OU:
SELECT OU.System_OU_Name0, count(*) as 'Count'
FROM v_R_System as SYS
JOIN v_RA_System_SystemOUName as OU on SYS.ResourceID = OU.ResourceID
JOIN AnotherView on SYS.ResourceID = AnotherView.ResourceID
WHERE AnotherView.SomeCriteria0 like "%99%"
group by OU.System_OU_Name0 order by OU.System_OU_Name0
I can't figure out how to get it to show a count of ALL systems in the
OU. Any help is appreciated.
.
- Follow-Ups:
- Re: Need assistance with query
- From: Dan Lewis
- Re: Need assistance with query
- References:
- Need assistance with query
- From: Dan Lewis
- Need assistance with query
- Prev by Date: Need assistance with query
- Next by Date: Re: Office 2007 Deployment
- Previous by thread: Need assistance with query
- Next by thread: Re: Need assistance with query
- Index(es):
Relevant Pages
|
Loading