Bitwise interview question

Lots of questions on SQL and RDBMS