SELECT MIN(RID) AS RID, name, Description,phone, MIN(START_TIME) AS START_TIME, MIN(end_TIME) 
      AS end_TIME, MIN(week) AS week,status,type,send_type
FROM SMSALARMNOTICE GROUP BY name,phone,status,send_type,Description
这条sql语句那里有错误,toal报出 ORA-00979: not a GROUP BY expression这个错误,应该怎么解决,在线等

解决方案 »

  1.   

    GROUP BY name,phone,status,send_type,Description改称 GROUP BY name,phone,status,send_type,Description,type
      

  2.   

    ---sql语句那里有错误,toal报出 ORA-00979: not a GROUP BY expression这个错误
    SELECT MIN(RID) AS RID, name, Description,phone, MIN(START_TIME) AS START_TIME, MIN(end_TIME) 
          AS end_TIME, MIN(week) AS week,status,type,send_type
    FROM SMSALARMNOTICE 
    GROUP BY name,phone,status,send_type,Description,type----group by 少写了type字段