# id, name, description, homepage, is_public, parent_id, created_on, updated_on, identifier, status, lft, rgt
5, DES, , , 0, , 2012-07-18 13:32:31, 2012-07-31 14:52:41, des, 1, 129, 130
14, GIS System, , , 0, , 2012-07-27 14:22:44, 2012-07-27 14:22:44, gissystem, 1, 187, 196
16, IMZ, , , 0, 14, 2012-07-27 14:42:14, 2012-07-27 14:42:14, imz, 1, 192, 193
17, GeoServer, , , 0, 14, 2012-07-27 14:42:36, 2012-07-27 14:42:36, geoserver, 1, 190, 191
18, Localization Platform, , , 0, , 2012-07-27 14:43:04, 2012-07-27 14:43:04, localizationplatform, 1, 359, 364
19, GMLC Proxy, , , 0, 18, 2012-07-27 14:43:31, 2012-07-27 14:43:31, gmlcproxy, 1, 360, 361
20, LCS Provisioning, , , 0, 18, 2012-07-27 14:44:01, 2012-07-27 14:44:01, lcsprovisioning, 1, 362, 363
21, SDP, , , 0, , 2012-07-27 14:44:18, 2012-07-27 14:44:18, sdp, 1, 721, 726
22, CM InfoServices, , , 0, 21, 2012-07-27 14:44:45, 2012-07-27 14:44:45, cminfoservices, 1, 722, 723
23, E112 Emergency Call Support, , , 0, , 2012-07-27 14:45:19, 2012-07-27 14:45:19, e112emergencycallsupport, 1, 159, 162
24, E112, , , 0, 23, 2012-07-27 14:46:28, 2012-07-27 14:50:51, emergencycallsupport, 1, 160, 161
Chciał bym zrobic select ktory zamieni parent_id(tam gdzie jest) na name gdzie id jest takie jak to parent id. Jest to możliwe? Nie udaje mi się tego zrobic