concat two Prisma.sql queries.
I have two pretty complex queries which i created manually using
In some cases and since both return the same data type, I would like to run them in one go concatenated using
(QUERY1) UNION (QUERY2)
.
So, my question is: How can I concat two Prisma.sql
queries?5 Replies
any ideas anyone?
Hi @ptrxyz
Would this example work for you?
yes!
So I can simply wrap the queries in a new Prisma.sql?
Yes you can
Thanks a lot! I'll give it a try!