avg over partition by order by
时间: 2023-09-03 18:14:07 浏览: 89
avg() over(partition by ... order by ...)是一种分析函数,用于计算分组后的平均值。它的具体用法是在partition by子句中指定分组的列,在order by子句中指定排序的列。这样,avg()函数将根据指定的分组和排序条件计算每个分组的平均值。
#### 引用[.reference_title]
- *1* [窗口函数 OVER(PARTITION BY ...)](https://blog.csdn.net/qq_55342245/article/details/122300899)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [【Orcale】分析函数 OVER(PARTITION BY... ORDER BY...)的讲解](https://blog.csdn.net/East_MrChiu/article/details/70183428)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [OVER(PARTITION BY ORDER BY)函数介绍](https://blog.csdn.net/qq_34357018/article/details/111034296)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文