(expression: SQLWrapper)
| 65 | * @see avg to get the average of all non-null values in `expression`, including duplicates |
| 66 | */ |
| 67 | export function avgDistinct(expression: SQLWrapper): SQL<string | null> { |
| 68 | return sql`avg(distinct ${expression})`.mapWith(String); |
| 69 | } |
| 70 | |
| 71 | /** |
| 72 | * Returns the sum of all non-null values in `expression`. |
no test coverage detected