→ 🚀What's New? Explore Lansweeper's Fall 2024 Updates! Fall Launch Blog !
08-05-2022 08:14 PM
So I am needing to make a report that will show all the computers that have a particular software installed and it's version is less than 1.3.24
I'm aware of how to make one that uses NOT LIKE, but in this case I have users that are also beta testing higher versions and I don't want them included in this report.
Solved! Go to Solution.
08-05-2022 08:48 PM
I believe you can use the < symbol in place of NOT LIKE and it should work. One problem is that the formatting of the software version can affect what shows up. For example, 1.3.3 through 1.3.9 might not show up since SQL will consider those bigger than 2, whereas 1.3.03 through 1.3.09 would. There are ways in the report code to change the data to work correctly though.
08-05-2022 08:48 PM
I believe you can use the < symbol in place of NOT LIKE and it should work. One problem is that the formatting of the software version can affect what shows up. For example, 1.3.3 through 1.3.9 might not show up since SQL will consider those bigger than 2, whereas 1.3.03 through 1.3.09 would. There are ways in the report code to change the data to work correctly though.
08-08-2022 06:03 PM
Expanding on/clarifying the comparison caveat, it's not an SQL issue that causes potential discrepancies but the fact that version "numbers" are actually text strings, so comparisons are simple left-to-right operations, exactly as you would compare two words. This means that "1.3.9" is greater than "1.3.10" because "9" > "1". Likewise, considering the recent browser version bump to hundreds, "99" > "102" because "9" > "1".
08-05-2022 09:17 PM
Thanks very much! In my case this worked well. Good to know about the potential SQL issues though.
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now