|
|
- SELECT mp.id, m.`type`, m.`code`, m.`name`, CONCAT(m2.`name`, '>', m1.`name`) `ancestors`
|
|
|
+ SELECT mp.id, m.`type`, m.`code`, CONCAT(m.`name`, IF(mp.`majorDirection` = '', '', CONCAT('(', mp.`majorDirection`, ')'))) `name`, CONCAT(m2.`name`, '>', m1.`name`) `ancestors`
|