CodeFulcrum interview question

How many database relationships are there and how to implement it in sql?