Iress interview question

Relation Database