"Константин" ...

    with recursive
         mas as (select m.id, m.filed from Table m where m.date beetwen :f to  
:t and .... ),

         s as (select Field f1, mas.filed f2 from SP(... , mas.id))

    select f1, f2 from s group by 1, 2

    И... облом                                       ^^^^^^^

Column does not belong to referenced table.
Dynamic SQL Error.
SQL error code = -206.
Column unknown.
MAS.ID.

      А пачаму ? если mas.filed доступен ?

   Где во FROM таблица mas ?


   Для того, чтобы сделать процедуру ведомой, пиши : table left join sp

--
Хорсун Влад

Ответить