FireBird Forum
C++Builder  |  Delphi  |  FireMonkey  |  C/C++  |  Free Pascal  |  Firebird
볼랜드포럼 BorlandForum
 경고! 게시물 작성자의 사전 허락없는 메일주소 추출행위 절대 금지
파이어버드 포럼
Q & A
FAQ
팁&트릭
강좌/문서
자료실
볼랜드포럼 홈
헤드라인 뉴스
IT 뉴스
공지사항
자유게시판
해피 브레이크
공동 프로젝트
구인/구직
회원 장터
건의사항
운영진 게시판
회원 메뉴
북마크
IBPhoenix
FireBird Main site
볼랜드포럼 광고 모집

FireBird Q&A
[2761] group by
현쓰 [clench] 2644 읽음    2008-03-27 16:29
아래 쿼리가 동작되게 하려면 어떻게 해야 할까요?
select 할 필드가 "documents".* 이라 group by 시 문제가 되는것 같습니다.
group by에 필드를 모두 적어주면 동작을 하겠지만...
필드가 53개인데 다 적어서 해봤는데... 오류메세지도 안나오고 결과물도 안나옵니다.
이런 경우 어떻게 처리 하나요?

SELECT FIRST 20 SKIP 0
    "documents".*
FROM
    "xe_documents" as "documents",
    "xe_tags" as "tags"
Where
    ("documents"."module_srl" in (58) and
    "documents"."document_srl" = "tags"."document_srl"
    and "tags"."tag" like '%%') and
    "documents"."list_order" < 2100000000
GROUP BY
    "documents"."document_srl"
ORDER BY "documents"."list_order" asc

위 쿼리 실행시 오류 메세지
SQL error code = -104.
Invalid expression in the select list (not contained in either an aggregate function or the GROUP BY clause).

+ -

관련 글 리스트
2761 group by 현쓰 2644 2008/03/27
2762     Re:group by civilian 3462 2008/03/27
2763         Re:Re:group by 현쓰 2417 2008/03/27
2764             Re:Re:Re:group by civilian 3000 2008/03/27
2765                 Re:Re:Re:Re:group by 현쓰 3184 2008/03/27
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.