Bitwise Interview Question

Foreign Key in Sql