Jump to content


  • 0
maffef

suggestion for a specific query

Question

Hi

 

I created this query

-----------------------------------------------------------------------------------------

select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName like "%TeamViewer 5 Host%" and SMS_G_System_ADD_REMOVE_PROGRAMS.Version not like "5.1.9220" and SMS_R_System.OperatingSystemNameandVersion != "Microsoft Windows NT Workstation 6.1" and SMS_R_System.ResourceDomainORWorkgroup = "MB_AU" or SMS_R_System.ResourceDomainORWorkgroup = "mb_sg" or SMS_R_System.ResourceDomainORWorkgroup = "mb_jp"

--------------------------------------------------------------------------------------------

 

The result should also given me computers without winversion 6.1 but it still shows computers with 6.1.

Already done Update Collection Ship but not the result which I want.

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Hi

 

I created this query

-----------------------------------------------------------------------------------------

select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName like "%TeamViewer 5 Host%" and SMS_G_System_ADD_REMOVE_PROGRAMS.Version not like "5.1.9220" and SMS_R_System.OperatingSystemNameandVersion != "Microsoft Windows NT Workstation 6.1" and SMS_R_System.ResourceDomainORWorkgroup = "MB_AU" or SMS_R_System.ResourceDomainORWorkgroup = "mb_sg" or SMS_R_System.ResourceDomainORWorkgroup = "mb_jp"

--------------------------------------------------------------------------------------------

 

The result should also given me computers without winversion 6.1 but it still shows computers with 6.1.

Already done Update Collection Ship but not the result which I want.

 

U cannot use NOT LIKE in that way.

 

If you gonan create such a query you need to use a subselect.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.