I am working on analyzing Add/Remove Program data from our SCCM server and need some assistance with a query.
The data has been retrieved from SCCM and scrubbed so that I’m only left with a list of actual applications I’m interested in. Common apps/security updates/runtimes, etc have been filtered out.
I need to define an SQL query which will give me a list of computers and their applications only if they have one or more applications defined by a list.
e.g.
Computer | Application
--------------------------------------
WKS001 | Microsoft Office
WKS001 | WebEx
WKS001 | Java Runtime 1.6_33
--------------------------------------
WKS002 | Microsoft Office
WKS002 | WebEx
WKS002 | Java Runtime 1.6_33
WKS002 | Photoshop
--------------------------------------
WKS003 | WebEx
WKS003 | Java Runtime 1.6_33
--------------------------------------
WKS004 | WebEx
WKS004 | Photoshop
I need to retrieve all computers which have any or all of the following applications:
Microsoft Office
WebEx
Java Runtime 1.6_33
That should give me WKS001 and WKS003
If you need to exclude computers that have an application not in that list: