Is it possible to generate (join) a new field by combining existing fields as source ?
I have a table like this:
id | title | parent_id | path
1  | a     | 0         | 1
2  | b     | 1         | 1/2
3  | c     | 1         | 1/3
4  | d     | 3         | 1/3/4
I want to use the "path" field's string (numbers) as a kind of index and generate (join) a new field using titles insead ids like:
id | title | parent_id | path | title_path
1  | a     | 0         | 1    | a
2  | b     | 1         | 1/2  | a/b
3  | c     | 1         | 1/3  | a/c
4  | d     | 3         | 1/3/4| a/c/d
Is this possible using sql on itself or should I use php for this?