Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Crush and new table

Hello, here's a question that may seem relatively simple

I have a number of imported table using the statement:

binary [test.qvw];

This test.qvw imports a table called CLIENT but is not qualified

I would just have the same CLIENT table but qualified so I tried

* Qualify;

CLIENT:

load * CLIENT resident;

And nothing moves  I have to create a table CLIENT2  and now it's OK

* Qualify;

CLIENT2:

load * CLIENT resident;

Ok for that but I want my table CLIENT and not CLIENT2 therefore crush the old unskilled and qualify calls because I have code that depends on CLIENT no CLIENT2!

thank you very much and sorry for my bad english.

Labels (1)
6 Replies
MK_QSL
MVP
MVP

Try Qualify * instead of * Qualify 🙂

Not applicable
Author

Excuse me it was Qualify * ;

I made a mistake when i wrote this topic

Not applicable
Author

Hi

Qualify *;   will qualify all fields following tihis statement and qualify them with the last table label found.

if you use

CLIENT:

LOAD * Residnet CLIENT

QV interprets both tables as the same and mix the second one on the first one  ...so no change

you have to go thru an other table (client2)   or change CLIENT by Tmp  and CLIENT2 by CLIENT.

You can also rename CLIENT2 as CLIENT but drop table CLIENT before

best regardss

Chris

Not applicable
Author

Yeah super Chris the change table name is ok!

But an other problem, the fields on the CLIENT table starts by CLIENT2.code for example!

Thanks you

Not applicable
Author

Yes

so rename fields can be long, the best is you do

UNQUALIFY *;

Tmp:

LOAD * from ....

QUALIFY *;

CLIENT:

LOAD * resident Tmp;

drop table Tmp;

Chris

Anonymous
Not applicable
Author

You can use RENAME command to change the field name.

RENAME Field [CLIENT2.code] to [CLIENT.code];

Thanks