sql联表查询常用

有三个表:T_USER,  t_group,  T_USER_GROUP, 求分组某个平均数: [html]  view plain  copy 3./*各部门平均奖金*/   select t_group.groupname as "部门", AVG(T_USER.bonus) AS "平均奖金"    from t_group left join T_USER_GROUP on t_group
相关文章
相关标签/搜索