CALL WITH_EMULATOR(
"EMPLOYEES_EXTENDED",
"
SELECT ID, PARENT_ID, ACTIVE, ID AS roott
FROM shop_category
WHERE PARENT_ID = 0
",
"
SELECT C.ID, C.PARENT_ID, C.ACTIVE, C.roott
FROM shop_category AS P INNER JOIN EMPLOYEES_EXTENDED C ON P.ID = C.PARENT_ID
",
"
SELECT ID, PARENT_ID, ACTIVE
FROM EMPLOYEES_EXTENDED
ORDER BY roott
",
0,
""
)
Так выдает ошибку синтаксиса