메뉴 건너뛰기

SAP 한국 커뮤니티

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

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

번호 제목 글쓴이 날짜 조회 수
839 [요청]배치job생성시 '이벤트후 실행'부분에대한 설명 부탁드려요. [1] Wowking 2007.11.27 1840
838 [요청]일자 [4] 풍뎅이 2007.11.27 1639
837 <b>[완료]</b>select 구문관련 질문입니다... [4] order001 2007.11.27 1609
836 [요청]문자형 변환 [3] 풍뎅이 2007.11.26 1915
835 <b>[완료]</b>뷰를 select로 가져오기. [7] spp 2007.11.26 1952
834 [요청]At new fldate ~ endat 구문관련 질문입니다. [6] order001 2007.11.26 1823
833 <b>[완료]</b>이너 조인에 대해서 질문드립니다. [2] order001 2007.11.25 1546
832 [요청]날짜에 따른 루프돌리기 [2] 풍뎅이 2007.11.24 2364
831 <b>[완료]</b>다시 질문드려요.. [4] file BEST!! 2007.11.24 1450
830 <b>[완료]</b>디버깅 했더니 값을 못 가져 오네요 어떻게 된건지 좀 봐주세요~ [7] rain 2007.11.24 1779
» [요청]inner join 구문 관련질문입니다. [4] order001 2007.11.23 1886
828 [요청]최대값 구하기 [10] 풍뎅이 2007.11.23 7931
827 <b>[완료]</b>두 인터널 테이블에서 같지 않은 것만 골라내기 [6] 김지성 2007.11.23 1833
826 <b>[완료]</b>select 로 inner join 질문이염.. [11] BEST!! 2007.11.23 2266
825 <b>[완료]</b>Trace 뜬거 분석 하는 방법 ?? [2] bd 2007.11.23 1880
824 [요청]DB테이블 동적 지정관련 질문입니다. [1] order001 2007.11.23 1762
823 <b>[완료]</b>select문장 에러 한번 봐주세요 ㅠㅠ [7] rain 2007.11.23 1857
822 [요청] 뷰 클러스터 질문입니다 mean 2007.11.23 2359
821 <b>[완료]</b>M 프로그램 관련 질문입니다. [2] bd 2007.11.23 1754
820 [요청]미니 sap 있으신 분.. [1] BEST!! 2007.11.22 1738