Many-to-many Solution: additional table with both Keys.
Hierarchy
Recursive relationships
Click here of a list of mathematical functions and operators