Domanda di colloquio di IBM

What is foreign key? Write the query for that.