Tag: MySQL determining type of tree node