Alternative to group by for cosmos db

前端 未结 3 1278
陌清茗
陌清茗 2020-12-20 16:24

Given that cosmos db does not support group by, what is a good alternative to achieve similar functionality:

Select sum(*) , groupterm from tble group by gro         


        
3条回答
  •  一生所求
    2020-12-20 17:03

    Group by is now supported in Cosmos db SQL API. You will be needing SDK version 3.3 or higher

    Azure Cosmos DB currently supports GROUP BY in .NET SDK 3.3 or later. Support for other language SDK's and the Azure Portal is not currently available but is planned.

    https://docs.microsoft.com/en-gb/azure/cosmos-db/sql-query-group-by

提交回复
热议问题