메뉴 건너뛰기

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로 설정할때의 차이점을 알려주세요..

번호 제목 글쓴이 날짜 조회 수
835 <b>[완료]</b>뷰를 select로 가져오기. [7] spp 2007.11.26 1815
834 [요청]At new fldate ~ endat 구문관련 질문입니다. [6] order001 2007.11.26 1811
833 <b>[완료]</b>이너 조인에 대해서 질문드립니다. [2] order001 2007.11.24 1533
832 [요청]날짜에 따른 루프돌리기 [2] 풍뎅이 2007.11.23 2333
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
828 [요청]최대값 구하기 [10] 풍뎅이 2007.11.23 7741
827 <b>[완료]</b>두 인터널 테이블에서 같지 않은 것만 골라내기 [6] 김지성 2007.11.23 1814
826 <b>[완료]</b>select 로 inner join 질문이염.. [11] BEST!! 2007.11.23 2257
825 <b>[완료]</b>Trace 뜬거 분석 하는 방법 ?? [2] bd 2007.11.23 1873
824 [요청]DB테이블 동적 지정관련 질문입니다. [1] order001 2007.11.23 1747
823 <b>[완료]</b>select문장 에러 한번 봐주세요 ㅠㅠ [7] rain 2007.11.23 1847
822 [요청] 뷰 클러스터 질문입니다 mean 2007.11.22 2349
821 <b>[완료]</b>M 프로그램 관련 질문입니다. [2] bd 2007.11.22 1749
820 [요청]미니 sap 있으신 분.. [1] BEST!! 2007.11.22 1730
819 [요청]스마트폼 페이지 표시 문제 (A B C...) [5] 댕댕 2007.11.22 1904
818 <b>[완료]</b>call transaction 사용하는 방법 좀 가르쳐주세요. [8] 행복한외계인 2007.11.22 10666
817 <b>[완료]</b>OPEN SQL 관련 질문입니다. [2] kms 2007.11.22 1698
816 <b>[완료]</b>INDEX 를 여러가지 적용시 ? [4] mm_dsshin 2007.11.21 1781