Having statement to compare sql<number> and number
Sorry if a dumb question, I'm working on an aggregation query like:
I'm getting a type error in the last line:
Operator '>' cannot be applied to types 'SQL<number>' and 'number'.
What's the best way to handle that comparison? Or maybe a having
isn't the correct method? Thanks3 Replies
it seems like this is maybe a better approach?:
Yep, that’s the way to go - what you did was create a gt comparison in js (where you have the sql statement to get the number in the query, not the actual number), gt is the way to construct it in the sql query
thx bud