Skip to content
Advertisement

Calculate Count of true bits in binary type with t-sql

I need to find how many true bit exists in my binary value.

example:

Advertisement

Answer

Result:

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