Ok think about the second query. After looking at that, and substituting a generic %Name% into it, how would it know you want a specific version? You are asking it to list all ARP for adobe on that machine. Adobe has published Acrobat, Reader, flash, etc. You need to pass the version as well as the name. Using Inv_Aex_Ac_Client_Agent ag isn't necessary, just join to the i.Guid.
EDIT:
I am really confused following this. The alias's have diff names and I keep getting turned around. It is just easier if I paste one:
Basic Global Param Prompts
Code:
App with default value of %
Level0
Code:
select T0.Name,T0.[Version], count(*) AS 'Total #'
from Inv_AeX_OS_Add_Remove_Programs T0
Inner join vComputer T1
on T0.[_Resourceguid] = T1.[guid]
WHERE T0.[Name] LIKE '%App%'
Group by T0.[Name], T0.[Version]
Configure Drilldown to Lvl 1
Level 1
Code:
select T1.[Name], T1.[User], T1.[ip address] from Inv_AeX_OS_Add_Remove_Programs T0
INNER JOIN vComputer T1
ON T0.[_ResourceGuid] = T1.[guid]
WHERE T0.[Name] LIKE '%Name%' AND
T0.[Version] LIKE '%Version%'
ORDER BY T1.[Name]