Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
koushik_btech20
Creator
Creator

Joining Problem

I am facing a problem regarding joining two table. Suppose I have two inline table ,

Tab1:

LOAD * Inline [

Code, Value

A,1

B,2

C,3

D,4

];

Tab2:

LOAD * Inline [

Code,Value

A,5

B,6

E,7

F,8

];


Now after joining two table I want the solution as,

Code,Value

A,1

B,2

C,3

D,4

E,7

F,8

If anyone have any solution please share here...

1 Solution

Accepted Solutions
Anonymous
Not applicable

Tab1:

LOAD * Inline [

Code, Value

A,1

B,2

C,3

D,4

];

outer join ( Tab1 )

LOAD * Inline [

Code,Value

A,5

B,6

E,7

F,8

]

where not exists ( Code ) ;

View solution in original post

5 Replies
Anonymous
Not applicable

Tab1:

LOAD * Inline [

Code, Value

A,1

B,2

C,3

D,4

];

outer join ( Tab1 )

LOAD * Inline [

Code,Value

A,5

B,6

E,7

F,8

]

where not exists ( Code ) ;

MK_QSL
MVP
MVP

Tab1:

LOAD * Inline [

  Code, Value

  A,1

  B,2

  C,3

  D,4

];

Concatenate

LOAD * Inline [

  Code,Value

  A,5

  B,6

  E,7

  F,8

];

Final:

Load Code, Min(Value) as MinValue

Resident Tab1

Group By Code;

Drop Table Tab1;

Not applicable

Hi,

just concatenate using where not(exists(Code))... ;D

Tab1:

LOAD * Inline [

Code, Value

A,1

B,2

C,3

D,4

];

Tab2:

LOAD * Inline [

Code,Value

A,5

B,6

E,7

F,8

]

where not(exists(Code))

;

aveeeeeee7en
Specialist III
Specialist III

Hi Koushik

See the Attachment.

Regards

Aviral

Not applicable

hi Kaushik

Tab1:

LOAD * Inline [

Code, Value

A,1

B,2

C,3

D,4

];

Tab2:

LOAD * Inline [

Code,Value

A,5

B,6

E,7

F,8

]

where not(exists(Code));