메뉴 건너뛰기

SAP 한국 커뮤니티

[요청]inner join 구문 관련질문입니다.

order001 2007.11.23 23:53 조회 수 : 1932 추천:37

data: begin of wa,
        carrid type spfli-carrid,
        connid type spfli-connid,
        fldate type sflight-fldate,
        bookid type sbook-bookid,
       end of wa,
       itab like sorted table of  wa
            with unique key carrid connid fldate bookid.


 


 select p~carrid p~connid f~fldate b~bookid


   from ( ( spfli as p
            inner join sflight as f on p~carrid = f~carrid and
                                       p~connid = f~connid   )
            inner join sbook   as b on b~carrid = f~carrid and
                                       b~connid = f~connid and
                                       b~fldate = f~fldate   )


 into corresponding fields of table itab



 where p~cityfrom = 'FRANKFURT' and
       p~cityto    = 'NEW YORK' and
       f~seatsmax > f~seatsocc.


 


 loop at itab into wa.
   at new fldate.



     write: / wa-carrid, wa-connid, wa-fldate.
     endat.
     write / wa-bookid.
     endloop.


 


현재 inner join 관련구문을 공부하고 있는데요..궁금한점 몇가지 질문드립니다. spfli라는 테이블을 가지고  sflight와


sbook을 inner join하는데요.. 아래 루프문에서 at new fldate 라는 구문의 의미를 잘모르겠어요..


글구 data 선언부에서 sorted table에서의 키를 설정할때 unique와 non-unitque로 설정할때의 차이점을 알려주세요..

번호 제목 글쓴이 날짜 조회 수
» [요청]inner join 구문 관련질문입니다. [4] order001 2007.11.23 1932
828 [요청]최대값 구하기 [10] 풍뎅이 2007.11.23 8025
827 <b>[완료]</b>두 인터널 테이블에서 같지 않은 것만 골라내기 [6] 김지성 2007.11.23 1866
826 <b>[완료]</b>select 로 inner join 질문이염.. [11] BEST!! 2007.11.23 2295
825 <b>[완료]</b>Trace 뜬거 분석 하는 방법 ?? [2] bd 2007.11.23 1910
824 [요청]DB테이블 동적 지정관련 질문입니다. [1] order001 2007.11.23 1787
823 <b>[완료]</b>select문장 에러 한번 봐주세요 ㅠㅠ [7] rain 2007.11.23 1894
822 [요청] 뷰 클러스터 질문입니다 mean 2007.11.23 2399
821 <b>[완료]</b>M 프로그램 관련 질문입니다. [2] bd 2007.11.23 1785
820 [요청]미니 sap 있으신 분.. [1] BEST!! 2007.11.22 1768
819 [요청]스마트폼 페이지 표시 문제 (A B C...) [5] 댕댕 2007.11.22 2054
818 <b>[완료]</b>call transaction 사용하는 방법 좀 가르쳐주세요. [8] 행복한외계인 2007.11.22 11427
817 <b>[완료]</b>OPEN SQL 관련 질문입니다. [2] kms 2007.11.22 1735
816 <b>[완료]</b>INDEX 를 여러가지 적용시 ? [4] mm_dsshin 2007.11.22 1826
815 <b>[완료]</b>같은구조의 TABLE -> TABLE로 DB데이터를 바로 옮기는 방법이 있나요? [3] file mm_dsshin 2007.11.22 1950
814 <b>[완료]</b>[완료]디버깅하려는데 오류 검사하면 에러 메시지가 나옵니다. ㅠㅠ [3] file rain 2007.11.21 1929
813 <b>[완료]</b>[완료] 런타임오류 [5] file rain 2007.11.21 2985
812 [요청]select-options에 대한 질문.. [1] 미적분의神 2007.11.21 1749
811 [요청]lvc_t_fcat 관한 질문입니다. [3] 기절하고파 2007.11.21 1867
810 [요청]SAP Script 질문입니다. 배상현 2007.11.21 2488