Bitwise interview question

Foreign Key in Sql