묻고답하기

<query id="getNewestDocuments" action="select">
    <tables>
        <table name="modules" />
        <table name="documents" />
        <table name="comments" />
        <table name="document_categories" />
    </tables>
    <columns>
        <column name="modules.site_srl" alias="site_srl"/>
        <column name="modules.mid" alias="mid"/>
        <column name="comments.content" alias="commnet"/>
        <column name="max(comments.comment_srl)" alias="last_cnt"/>
        <column name="document_categories.title" alias="categorie"/>
        <column name="documents.*" />
    </columns>
    <conditions>
        <condition operation="equal" column="modules.site_srl" var="site_srl" />
  <condition operation="not_in" column="documents.module_srl" default="0" pipe="and" />
        <condition operation="in" column="documents.module_srl" var="module_srl" filter="number" pipe="and" />
        <condition operation="equal" column="comments.document_srl" default="documents.document_srl" pipe="and" />
        <condition operation="equal" column="document_categories.category_srl" default="documents.category_srl" pipe="and" />
        <condition operation="equal" column="comments.parent_srl" default="0" pipe="and" />
        <condition operation="equal" column="modules.module_srl" default="documents.module_srl" filter="number" pipe="and" />
    </conditions>
    <groups>
         <group column="comments.document_srl" />
    </groups>


    <navigation>
        <index var="sort_index" default="documents.list_order" order="order_type" />
        <list_count var="list_count" default="20" />
    </navigation>
</query>

---------------------------------------------------------------------------------------

현재 저한테 맞는  위젯을 만들기 위해 최근문서위젯을 수정하고 있습니다

 

 

컨셉은 최신 댓글(댓글의 댓글은 제외)과 댓글이 달린 게시물을  가져 오는것인데

SQL을 위의 처럼  작성 했지만 계속  첫번째 댓글을 가져 옵니다

어떻게 수정 해야 할까요 도움 부탁드립니다

글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
똑디 XE 설치시 mysql client api 버전은? [1] 2012.10.18 by 똑디
제이투자 문서번호에 값을 입력해주세요->이 문제 해결할 사람이 없는건지? [1] 2012.10.18 by pentopen
자근도깨비 요약글 형식 [1] 2012.10.18 by 송동우
lmjy2k 게시글 본문에 실시간 출력 보여주려면 어떻게 해야하나요?  
뽀칠이 5.3.3 에서 제목과 본문 사용 안 할려고합니다. [1] 2012.10.18 by 송동우
고이풀 가입폼안에서 전역변수 사용할려면.. [1] 2012.10.18 by 송동우
오늘도가자11 송동우님 ㅜㅜ 특정그룹 회원들 개개인들의 작성글을 2개로 제한하고 싶습니다  
천랑시리우스 확장변수 수정금지 방법 재질문 [1] 2012.10.18 by 송동우
미친박군 회원 관리에서 등업해주면서 쪽지를 보내면 오류가 납니다.  
EaglesV1 도메인만 쓰면 안되고 도메인/xe 이렇게 해야만 접속이 되요.ㅠㅠ [2] 2012.10.17 by EaglesV1
디쎔버 xe 회원정보가 암호화되어 있는데 이를 볼 수 없나요? [1] 2012.10.17 by 송동우
jeegoon view_document 페이지에 isSecret 값 불려오려면 어케해야하나용~ [1] 2012.10.17 by sejin7940
브페 살려주세요 데이터를 날려버렸습니다. [1] 2012.10.17 by 송동우
한번할라냐 게시판DX에서 댓글이 표시되는 위치를 바꾸고 싶은데요 ㅜㅜ [1] file 2012.10.17 by 송동우
오늘도가자11 전체회원수 표시 방법좀 알려주세요 [1] 2012.10.17 by 송동우
Aaronner 시작페이지 위젯 꾸미기 [2] 2012.10.17 by 온달왕자
유하아빠 쉬운설치하다가 망했어요 도와주세요!! [1] 2012.10.17 by 온달왕자
insideJS 공지사항이 안돼요 도와주세요 file  
건곤일척 XE 초보에게는 이렇게 힘든가요. [1] 2012.10.17 by 온달왕자
쇼우타냥 회원정보 수정시 권한이 없다고 합니다.