Bitwise Interview Question

Lots of questions on SQL and RDBMS