한 JMP 파일의 열을 다른 JMP 파일로 병합다음과 같은 두 개의 JMP 파일이 있습니다.
JMP file 1:<BR /> <BR /> <SPAN class="typ">Name</SPAN> <SPAN class="typ">Sex</SPAN>
<SPAN class="lit">0</SPAN> <SPAN class="typ">Sam</SPAN> <SPAN class="pln"> M </SPAN><SPAN class="lit">1</SPAN> <SPAN class="typ">John</SPAN> <SPAN class="pln"> M</SPAN><SPAN class="lit">2</SPAN> <SPAN class="typ">Larry</SPAN> <SPAN class="pln"> M</SPAN><SPAN class="lit">3</SPAN> <SPAN class="typ">Mark</SPAN> <SPAN class="pln"> M
<BR />JMP file 2:
</SPAN><SPAN class="typ">Name</SPAN> <SPAN class="typ">Age</SPAN> <SPAN class="typ">Sex</SPAN>
<SPAN class="lit">0</SPAN> <SPAN class="typ">Kelvin</SPAN> <SPAN class="lit">51</SPAN><SPAN class="pln"> M </SPAN><SPAN class="lit">1</SPAN> <SPAN class="typ">Bob</SPAN> <SPAN class="lit">26</SPAN><SPAN class="pln"> M</SPAN><SPAN class="lit">2</SPAN> <SPAN class="typ">Larry</SPAN> <SPAN class="lit">37</SPAN><SPAN class="pln"> M</SPAN><SPAN class="lit">3</SPAN> <SPAN class="typ">Jerry</SPAN> <SPAN class="lit">17</SPAN><SPAN class="pln"> M</SPAN><SPAN class="lit">6</SPAN> <SPAN class="typ">Nick</SPAN> <SPAN class="lit">68</SPAN><SPAN class="pln"> M</SPAN><SPAN class="lit">8</SPAN> <SPAN class="typ">Sam</SPAN> <SPAN class="lit">98</SPAN><SPAN class="pln"> M</SPAN><SPAN class="lit">9</SPAN> <SPAN class="typ">Jax</SPAN> <SPAN class="lit">78</SPAN><SPAN class="pln"> M</SPAN><SPAN class="lit">10</SPAN> <SPAN class="typ">John</SPAN> <SPAN class="lit">23</SPAN><SPAN class="pln"> M</SPAN><SPAN class="lit">11</SPAN> <SPAN class="typ">Mark</SPAN> <SPAN class="lit">47</SPAN><SPAN class="pln"> M</SPAN><SPAN class="lit">12</SPAN> <SPAN class="typ">Jerry</SPAN> <SPAN class="lit">68</SPAN><SPAN class="pln"> M</SPAN>
내 출력은 이상적으로 다음과 같아야 합니다.
Output:
<SPAN class="typ">Name</SPAN> <SPAN class="typ">Age</SPAN> <SPAN class="typ">Sex</SPAN>
<SPAN class="lit">0</SPAN> <SPAN class="typ">Sam</SPAN> <SPAN class="lit">98</SPAN><SPAN class="pln"> M </SPAN><SPAN class="lit">1</SPAN> <SPAN class="typ">John</SPAN> <SPAN class="lit">23</SPAN><SPAN class="pln"> M</SPAN><SPAN class="lit">2</SPAN> <SPAN class="typ">Larry</SPAN> <SPAN class="lit">37</SPAN><SPAN class="pln"> M</SPAN><SPAN class="lit">3</SPAN> <SPAN class="typ">Mark</SPAN> <SPAN class="lit">47</SPAN><SPAN class="pln"> M</SPAN>
조인 및 병합을 시도했지만 행 값이 정렬되지 않습니다. jsl 스크립트의 단계를 자동화하고 싶습니다.
어떤 제안을 해주세요??
스크립팅Re: 한 JMP 파일의 열을 다른 JMP 파일로 병합안녕 @Jacksmith12 ,
행을 제한하려면 필터를 사용할 수 있습니다.
데이터의 하위 집합을 가져올 필터 선택에 대한 설명서의 섹션을 참조하십시오.
그것이 당신에게 필요한 것을 제공하는지 알려주십시오.
건배,
스탠
Re: 한 JMP 파일의 열을 다른 JMP 파일로 병합두 번째 테이블에 여러 개의 열이 있고 테이블 2의 특정 열을 테이블 1에 병합하려는 경우 어떻게 합니까?
Re: 한 JMP 파일의 열을 다른 JMP 파일로 병합안녕 @Jacksmith12 ,
조인 편집 버튼( 벤 다이어그램 아이콘 )을 클릭하여 테이블을 선택한 후 조인을 편집할 수 있습니다.
사용에 대한 추가 지침 JMP 쿼리 빌더 및 조인 조건을 편집합니다.
건배,
스탠
Re: 한 JMP 파일의 열을 다른 JMP 파일로 병합여러 행이 있습니다. 첫 번째 테이블의 두 번째 테이블에서 1개의 행을 포함하려면 어떻게 해야 합니까?Re: 한 JMP 파일의 열을 다른 JMP 파일로 병합조인트 편집 옵션은 어떻게 선택합니까?Re: 한 JMP 파일의 열을 다른 JMP 파일로 병합안녕 @Jacksmith12
테이블-->JMP 쿼리 빌더를 사용할 수 있습니다.
JMP Query BuilderJMP 쿼리 빌더
왼쪽 외부 조인 사용
All Matching Rows-Left Outer Join일치하는 모든 행-왼쪽 외부 조인
New SQL Query(
Version( 130 ),
Connection( "JMP" ),
JMP Tables( ["Table 1" => "_MEMORY_", "Table 2" => "_MEMORY_"] ),
QueryName( "SQLQuery3" ),
Select( Column( "Name", "t1" ), Column( "Age", "t1" ), Column( "Sex", "t1" ) ),
From(
Table( "Table 1", Alias( "t2" ) ),
Table(
"Table 2",
Alias( "t1" ),
Join(
Type( Left Outer ),
EQ( Column( "Name", "t1" ), Column( "Name", "t2" ) ) &
EQ( Column( "Sex", "t1" ), Column( "Sex", "t2" ) )
)
)
)
) << RunRe: 한 JMP 파일의 열을 다른 JMP 파일로 병합사용
테이블==>업데이트
파일 1이 기본 테이블이고 파일 2가 보조 파일이며 이름 열과 일치합니다.