Bitwise interview question

SQL questions