Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Felder in Tabelle übertagen

Hallo,

folgendes Problem:

Table1:
LOAD * INLINE [
PERSNR, USER, VALUE
001, TOM, 10
002, DAVE, 30
]
;

Table2:
LOAD * INLINE [
PNr, Name
A 001, Tom
A 002, Dave
B 007, Germany
B 008, USA
]
;

Ich würde gerne die Felder USER und VALUE aus Table1 in Table 2 übernehmen.

PERSRNR = PNr

001 = A 001 -> Tom

002 = A 002 -> Dave

WIe gehe ich hier vor? Mapping Load? Und wie verändere ich den Schlüssel von A 001 zu 001 damit eine Übereinstimmung herrscht?

Viele GRüße

1 Solution

Accepted Solutions
Not applicable
Author

Nicht sicher, ob meine alte Schule Deutsch aus Island hilft mir zu verstehen, aber das ist etwas, das helfen könnte?

Table1:

LOAD * INLINE [

PERSNR, USER, VALUE

001, TOM, 10

002, DAVE, 30

];

tempTable2:

LOAD * INLINE [

PNr, Name

A 001, Tom

A 002, Dave

B 007, Germany

B 008, USA

];

Table2:

LOAD

  Right(PNr,3) as PERSNR,

  Name

Resident tempTable2;

drop Table tempTable2;

View solution in original post

3 Replies
Not applicable
Author

Nicht sicher, ob meine alte Schule Deutsch aus Island hilft mir zu verstehen, aber das ist etwas, das helfen könnte?

Table1:

LOAD * INLINE [

PERSNR, USER, VALUE

001, TOM, 10

002, DAVE, 30

];

tempTable2:

LOAD * INLINE [

PNr, Name

A 001, Tom

A 002, Dave

B 007, Germany

B 008, USA

];

Table2:

LOAD

  Right(PNr,3) as PERSNR,

  Name

Resident tempTable2;

drop Table tempTable2;

Not applicable
Author

Thank´s! Another Problem is this one ...

OrgaStruktur:
LOAD * INLINE [
Num1, Desc1, Num2, Desc2
1, Deutschland, 2, NRW
1, Deutschland, 3, Bayern
2, NRW, 25, Aachen
2, NRW, 28, Köln
3, Bayern, 40, Augsburg
25, Aachen, 111, A
28, Köln, 222, B
40, Augsburg, 333, C
]
;

Values:
LOAD * INLINE [
Objekte, Values
Deutschland, 1000
NRW, 500
Bayern, 600
Aachen, 350
Köln, 850
Augsburg, 900
]
;

I have to design several Loops für getting this soltuion... (But  don´t know if this is possible to build?!)

Desc / Num

Deutschland / 1000

Deutschland / 500

Deutschland / 600

Deutschland / 350

Deutschland / 850

Deutschland / 900

NRW / 500

NRW / 350

NRW / 850

Bayern / 600

Bayern / 900

... ....

Not applicable
Author

Hi,

I'm not sure how to do this but I would guess that if you put the OrgaStruktur: in an Excel file you could use the file wizard.  Try the Crosstable or Hierarchy? 

Or put a new question to the community.

// Fjalar