Servian Interview Question

How to implement a hierarchical dataset using SQL.