# VeloceDB 2.73.40 — tally

Installer train **2.73.40**. Host kernel history stays 2.73.13 W5 / 2.73.32–2.73.33 disk-testdb. This totals the JSON row join from 2.73.39. It is not a planner and not a decimal type. analog ≠ native. **certifiedClaim = false.**

No new ops/s. The published table stays host03, 2026-08-31, method labeled 2.73.13.

## Group

```
SELECT orders.customer, COUNT(*), SUM(orders.total)
FROM orders
GROUP BY orders.customer
```

The group column is in the select list. A second group column returns `ERROR relate group`. A plain column that is not the group column returns the same error.

`COUNT`, `SUM`, `MIN`, `MAX`, and `AVG` are the functions. `COUNT(*)` counts rows. `COUNT(orders.sku)` skips nulls. `SUM` and `AVG` add JSON numbers. A string in `SUM` or `AVG` returns `ERROR relate agg`. `MIN` and `MAX` accept numbers, or strings, and refuse a mix.

An empty table returns one row for `SELECT COUNT(*)`: the count is 0 and `SUM` is null. `GROUP BY` on an empty table returns no rows.

`AVG` is a JavaScript number. `16/3` stays `5.333333333333333`. It is not a decimal.

`HAVING` returns `ERROR relate having`. `COUNT(DISTINCT …)` returns `ERROR relate distinct`.

`SELECT COUNT(*) FROM TESTDB` is unchanged. It still counts testdb keys, not JSON rows.

## Join

```
SELECT customers.name, COUNT(*)
FROM orders
JOIN customers ON orders.customer = customers.id
GROUP BY customers.name
```

The join runs first. The group runs on those rows. The 10000-row cap still fails closed.

## WITH

One non-recursive `WITH` can group. Inside that `WITH`, `COUNT(*)` is visible to the outer query as `count_star`. `SUM(orders.total)` is `sum_orders_total`.

2.73.39 join, 2.73.38 vacuum and optional TLS, and the auth and value-seal defaults are unchanged. Auth, TLS, and value sealing still default off.
