ParamQuery Grid
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
ParamQuery grid support forum
»
General Category
»
Help for ParamQuery Pro
»
Sum, Average, Min or Max for nullable fields
« previous
next »
Print
Pages: [
1
]
Author
Topic: Sum, Average, Min or Max for nullable fields (Read 1781 times)
TeeJT
Pro Ultimate
Jr. Member
Posts: 88
Sum, Average, Min or Max for nullable fields
«
on:
June 02, 2017, 12:43:59 pm »
Is it possible for nullable fields linked to a column that the null values can be treated as 0 instead of undefined as in the example attached
Logged
paramvir
Administrator
Hero Member
Posts: 6310
Re: Sum, Average, Min or Max for nullable fields
«
Reply #1 on:
June 02, 2017, 02:47:30 pm »
For that you can write your own function pq.aggregate.max which treats null values as 0. It would override the inbuilt function.
Logged
Print
Pages: [
1
]
« previous
next »
ParamQuery grid support forum
»
General Category
»
Help for ParamQuery Pro
»
Sum, Average, Min or Max for nullable fields