• 2022-06-05
    对于表A(col1 int,col2 char(1))使用聚合函数sum,下面语句正确的是( )
    A: select sum(col2) as col2 from A group by col1

    B: select sum(col1) as col1 from A group by col2

    C: select sum(col1) as col1,col2 from A group by col1

    D: select sum(col2) as col1 from A group by col2
  • 举一反三