메뉴 건너뛰기

SAP 한국 커뮤니티

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

order001 2007.11.23 14:53 조회 수 : 1859 추천: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로 설정할때의 차이점을 알려주세요..

번호 제목 글쓴이 날짜 조회 수
848 [요청]TABLE CONTROL BDC 문제 [2] 솔로몬 2007.11.27 2267
847 <b>[완료]</b>해당월에 따른 조건 [5] 풍뎅이 2007.11.27 1680
846 <b>[완료]</b>select 질문입니다. [3] ccc 2007.11.27 1880
845 <b>[완료]</b>spfli ~ connid 와 spfli - connid에 대한 질문입니다. [5] order001 2007.11.27 1764
844 [요청]코딩시 소스정렬문제...... [6] 초봡 2007.11.27 2546
843 <b>[완료]</b>Table Control 헤더 및 데이타 가운데 정렬 되시는 분 계시나요? [7] 김지성 2007.11.27 2309
842 [요청]데이터처리 [5] 풍뎅이 2007.11.26 1598
841 <b>[완료]</b>메소드 질문입니다. [2] bd 2007.11.26 1695
840 <b>[완료]</b>두개의 internal table에서 한쪽에 없는 것을 다른 한쪽에 넣는 방법 좀 알려주세요. [5] 행복한외계인 2007.11.26 3293
839 [요청]배치job생성시 '이벤트후 실행'부분에대한 설명 부탁드려요. [1] Wowking 2007.11.26 1823
838 [요청]일자 [4] 풍뎅이 2007.11.26 1629
837 <b>[완료]</b>select 구문관련 질문입니다... [4] order001 2007.11.26 1597
836 [요청]문자형 변환 [3] 풍뎅이 2007.11.26 1821
835 <b>[완료]</b>뷰를 select로 가져오기. [7] spp 2007.11.26 1798
834 [요청]At new fldate ~ endat 구문관련 질문입니다. [6] order001 2007.11.26 1807
833 <b>[완료]</b>이너 조인에 대해서 질문드립니다. [2] order001 2007.11.24 1532
832 [요청]날짜에 따른 루프돌리기 [2] 풍뎅이 2007.11.23 2328
831 <b>[완료]</b>다시 질문드려요.. [4] file BEST!! 2007.11.23 1438
830 <b>[완료]</b>디버깅 했더니 값을 못 가져 오네요 어떻게 된건지 좀 봐주세요~ [7] rain 2007.11.23 1750
» [요청]inner join 구문 관련질문입니다. [4] order001 2007.11.23 1859