add remove split language chart show hidden hide
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
CREATE TABLE
CREATE TABLE
CREATE FUNCTION
CREATE TRIGGER
INSERT 0 12
INSERT 0 12
INSERT 0 12
CREATE TYPE
cat_id parent_id tree_depth lang_id title
1 null 0 1 One
11 1 1 4 One.One
13 1 1 6 One.Three
12 1 1 5 One.Two
3 null 0 3 Three
31 3 1 9 Three.One
2 null 0 2 Two
21 2 1 7 Two.One
211 21 2 10 Two.One.One
213 21 2 12 Two.One.Three
212 21 2 11 Two.One.Two
22 2 1 8 Two.Two
SELECT 12
cat_id parent_id tree_depth lang_id title
2 null 0 14 Dos
22 2 1 20 Dos.Dos
21 2 1 19 Dos.Uno
212 21 2 23 Dos.Uno.Dos
213 21 2 24 Dos.Uno.Tres
211 21 2 22 Dos.Uno.Uno
3 null 0 15 Tres
31 3 1 21 Tres.Uno
1 null 0 13 Uno
12 1 1 17 Uno.Dos
13 1 1 18 Uno.Tres
11 1 1 16 Uno.Uno
SELECT 12