On Tue, Sep 22, 2020 at 6:11 PM Алексей Мацкевич <
[email protected]> wrote:

> Example: `WITH cte1 AS ( ... ), cte2 AS ( ... ), cte3 AS ( ... )`
> is there a way to write multiple queries with one CTE?
>

You should call Dataset#with multiple times:

 DB[:table].
  with(:cte1, ...).
  with(:cte2, ...).
  with(:cte3, ...)

Thanks,
Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sequel-talk/CADGZSSeTh3c4bJcXQVE8xZGhGZsGdcjZKNXd1bSCJy2WQtKqUA%40mail.gmail.com.

Reply via email to