Skip to content
Advertisement

need to have data till 3 dots in SQL

I am having data query with me it gives version of windows update

output we are getting

I need version up to 3 dots like 7.6.7601 or 7.9.9600 and count be addition of following

84+2+3+265+3+7 in table

Means I will be needing one row for version 10.0.14393 total count

Advertisement

Answer

The following will create a substring of version0 up to but not including the last dot and anything after that dot

I have used an alias for the table name to make it more readable

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement