/build/static/layout/Breadcrumb_cap_w.png

Need help with SQL Query

I have a query to show me all the users with Google Chrome.  I don't need MACHINE.MAC listed below.  What I would like is last logged in username.  What is the query for that?

 

SELECT MACHINE.NAME AS SYSTEM_NAME, SYSTEM_DESCRIPTION, MACHINE.IP, MACHINE.MAC, MACHINE.ID as TOPIC_ID FROM MACHINE  LEFT join SAM_VIEW_MACHINE_DISCOVERED_SOFTWARE on MACHINE.ID=SAM_VIEW_MACHINE_DISCOVERED_SOFTWARE.MACHINE_ID WHERE ((SAM_VIEW_MACHINE_DISCOVERED_SOFTWARE.NAME like 'Google Chrome%'))  GROUP BY MACHINE.ID

2 Comments   [ + ] Show comments
  • Would it be possible to just use the software catalog? - rsm11 11 years ago
    • Software catalog is what I need the software tab doesn't actually show all installed instances of Chrome. This is a bug and I'm trying to get it resolved. - petelanglois 11 years ago
      • I see that when viewing searching chrome in the software tab it doesn't give reasonable information. But the software catalog works well. Are you running 5.5? - rsm11 11 years ago
  • Yes been running 5.5 for a while, beta and now GA - petelanglois 11 years ago

Answers (1)

Answer Summary:
Posted by: dugullett 11 years ago
Red Belt
2

I use MACHINE.USER_LOGGED since it includes the domain since we have multiple. You can also use MACHINE.USER, MACHINE_USERFULLNAME, or MACHINE.USER_NAME.


Comments:
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ