V2EX  ›  英汉词典

Group By

定义 Definition

group by:常见于数据库与数据分析语境,指“按某个字段/条件对数据进行分组”,使得后续可以对每个组进行汇总计算(如 COUNT、SUM、AVG 等)。在 SQL 中通常写作 GROUP BY。在日常英语里也可泛指“按……分类/分组”。

发音 Pronunciation

/ˈɡruːp baɪ/

例句 Examples

We can group by department to see how many employees each team has.
我们可以按部门分组,看看每个团队有多少员工。

In the report, the data were grouped by region and quarter, then averaged to reveal long-term trends.
在报告中,数据按地区和季度分组后再求平均,以揭示长期趋势。

词源 Etymology

group 源自法语 groupe(一群、一组),与“聚集、成组”有关;by 表示“按……方式/依据……”。合在一起 group by 就是“按……进行分组/依据……分类”。在计算机与数据库领域,这一表达被固定化为 SQL 语法中的关键结构 GROUP BY

相关词 Related Words

文学与著作中的用例 Literary Works

  • Learning SQL(Alan Beaulieu)
  • SQL Cookbook(Anthony Molinaro)
  • SQL for Data Analysis(Cathy Tanimura)
  • Designing Data-Intensive Applications(Martin Kleppmann)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   1774 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 10ms · UTC 10:13 · PVG 18:13 · LAX 02:13 · JFK 05:13
♥ Do have faith in what you're doing.