Say you have two binary values
001011 001111
How can you get the number of different bits in MySQ
SELECT BIT_COUNT(b'001011' ^ b'001111');