Polarman Posted March 23, 2015 Report post Posted March 23, 2015 I have made a query which gives how many have a specific software installed. However, I want to display the result on which machine has the software, what version and product. And maybe when it was installed. How to build this query?? Knut Quote Share this post Link to post Share on other sites More sharing options...
GarthMJ Posted March 23, 2015 Report post Posted March 23, 2015 Without having your first query it is impossible to answer this question. Quote Share this post Link to post Share on other sites More sharing options...
Polarman Posted March 24, 2015 Report post Posted March 24, 2015 select distinct SMS_G_System_SYSTEM.Name from SMS_R_System as Sys full join SMS_G_System_ADD_REMOVE_PROGRAMS as ARP on ARP.ResourceID = Sys.ResourceId full join SMS_G_System_SYSTEM on SMS_G_System_SYSTEM.ResourceID = Sys.ResourceId where ARP.DisplayName like "Sigmaplot %" This is the query, giving the right result. However, I want the result displaying me more info than just the machines having this installed. I want the result to show name of software, version and if possible how many times it has been used. As shown in the picture attached I want more info inside the red line Quote Share this post Link to post Share on other sites More sharing options...
GarthMJ Posted March 24, 2015 Report post Posted March 24, 2015 Try this.. Watch out for typos.. I write this free hand. select distinct SMS_G_System_SYSTEM.Name, ARP.DisplayName, ARP.Version from SMS_R_System as Sys full join SMS_G_System_ADD_REMOVE_PROGRAMS as ARP on ARP.ResourceID = Sys.ResourceId full join SMS_G_System_SYSTEM on SMS_G_System_SYSTEM.ResourceID = Sys.ResourceIdwhere ARP.DisplayName like "Sigmaplot %" Quote Share this post Link to post Share on other sites More sharing options...
Polarman Posted March 25, 2015 Report post Posted March 25, 2015 "Free hand"?? Well, it worked like a charm! Got versions up and name of software Thanks Garth! Quote Share this post Link to post Share on other sites More sharing options...