We are using Version 6.x so I have look into Inv_AeX_SWD_Execution_Summary table.
Now I have my Systemname and the packages which was installed on it. But I always got all packages which was installed - I only want to have the latest packages :-)
My current SQL statement:
select DISTINCT SWDExSum._ResourceGuid , InvACIdent._ResourceGuid , InvACIdent.Name, SWDExSum.PackageName, SWDExSum.PackageId
from Inv_AeX_SWD_Execution_Summary SWDExSum
LEFT OUTER JOIN dbo.SWDPackage SWDPackage on SWDPackage.PackageId = SWDExSum.PackageId
LEFT OUTER JOIN dbo.Inv_AeX_AC_Identification InvACIdent on InvACIdent._ResourceGuid = SWDExSum._ResourceGuid
LEFT OUTER JOIN dbo.Inv_ClientTasks InvCT on InvCT._ResourceGuid = InvACIdent._ResourceGuid
where SWDPackage._Latest = '1'
ORDER BY InvACIdent.Name
Does anybody can help me how to change it that I only have the latest package each productcode?
In these SQL I got 50 Adobe Acrobat Reader for example, but I only want to have the latest Adobe Acrobat Reader Package which was installed on a system.
Thanks and best regards,
Patrick