/build/static/layout/Breadcrumb_cap_w.png

Converting Software Display Version?

I'm trying to create a SQL script that we can pull software items that are less than a certain version. However the Software.Display.Version is stored in varchar and I can't seem to conduct a 'less than' or 'greater than' against the varchar. I've tried conducting a CAST and CONVERT with no luck.

Anyone have an ideal on how to approach this?

Thanks,
Dave

0 Comments   [ + ] Show comments

Answers (1)

Posted by: GillySpy 12 years ago
7th Degree Black Belt
0
Yes those are strings because they are definitely not numbers. They contain numbers so I understand the temptation and expectation. However, there is an answer:

regular expressions! A valuable tool in the IT pro's box:

see this for an example: http://itninja.com/question/silent-uninstall-oracle-8-cilent3368&mpage=1&key=regex&#73897

If the version is simple enough you can also use basic sql pattern matching. % is an anylength wildcard and _ is a single character wildcard
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
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