Ci sono vari metodi per implementare una tabella "gerarchica":

http://dev.mysql.com/tech-resources/...ical-data.html