그룹화 할 선택 목록에 모든 열을 포함 시키십시오. , 문서
Cause: The GROUP BY clause does not contain all the expressions in the SELECT clause. SELECT expressions that are not included in a group function, such as AVG, COUNT, MAX, MIN, SUM, STDDEV, or VARIANCE, must be listed in the GROUP BY clause.
Action: Include in the GROUP BY clause all SELECT expressions that are not group function arguments
해결에서 여기 http://www.dba-oracle.com/t_ora_00979_not_a_group_by_expression.htm
참조하여 group by
절에 선택 목록에있는 모든 열을 포함한다. 오라클 사양 오류 ORA-01722
당
select s.S_FIRST||' '||s.S_LAST as fullname, s.s_id,
sum(c.CREDITS) as total_credit from enrollment e,
student s,course c
where s.s_id=e.S_ID
and c.COURSE_NO=e.C_SEC_ID
group by s.S_FIRST||' '||s.S_LAST
having total_credit > 12
order by s.s_id;
같은 쿼리를 변경할 수는 The attempted conversion of a character string to a number failed because the character string was not a valid numeric literal.
의 모든 필드 INT 유형이나 같은 유형 확인을 의미합니다. IS c.CREDITS
INT 유형?
은 같은 유형의 s.s_id
과 e.S_ID
입니까?
은 동일한 유형의 c.COURSE_NO
및 e.C_SEC_ID
입니까?
안녕하세요,이 오류 보고서와 함께 돌아 왔습니다. SQL 오류 : ORA-01722 : 잘못된 번호 01722. 00000 - "잘못된 번호" – user3651097
@user3651097, 편집 된 답변 확인. 지금 해봐. – Rahul
@user3651097 도움이된다면 답을 수락하는 것을 잊지 마십시오. – Rahul