SELECT SUM(p.amount * p.value) FROM products p WHERE p.id_tenant = 1;
✅ 1
a
Austin
07/07/2022, 9:26 PM
Hey Luan,
This is not possible with Prisma, you would need to do the calculation in a separate query first.
Feel free to open a feature request if you would like to see us add this functionality.