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

Add field with table name

Hi,

Anybody knows how to add a field with the table name?

Thanks a lot 

Tania

1 Solution

Accepted Solutions
MayilVahanan

Hi,

     Try likethis,

     Load *, 'Table1' as Field1 from file.qvd;

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

4 Replies
MayilVahanan

Hi,

Use Qualify in script;

Qualify B;

Load A,B from x.csv;

Load A,B from y.csv;

The two tables x.csv and y.csv are joined only on A. Three fields will result: A, x.B, y.B.

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

Actually, I need the table name in a field, like this:

Table1:

Load

Field1,

Field2

From file.qvd

and one of the fields, say Field1, has only the value 'Table1'

Thank you

MayilVahanan

Hi,

     Try likethis,

     Load *, 'Table1' as Field1 from file.qvd;

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

D'oh! I didn't think in that

Thank you very much!