Bitwise Interview Question

SQL concepts