Selecting result of subtraction with summation
Hey, I'm having trouble translating the effective following Postgresql code to Kysely code:
I tried to use this:
but this yields to a type error:
Does anyone have any ideas about how to safely get around this? Was hoping to avoid using
sql
.
Here's a minimal repro of what I'm trying to do: https://kyse.link/EdviNSolution:Jump to solution
oh oops, I think I just meant to use
"inventory.initial_quantity"
, rather than wrapping it in eb.val
🤦♂️2 Replies