19.COUNT() , AVG() 聚合函数
SELECT COUNT(*) AS count
FROM tutorial{
"results": [
{
"count": 6
}
]
}SELECT COUNT(*) AS count, AVG(c.age) AS avg_age
FROM tutorial t
UNNEST t.children c
WHERE c.age > 10{
"results": [
{
"avg_age": 18,
"count": 4
}
]
}Last updated