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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Michiel_QV_Fan
Specialist
Specialist

Where exist different connections

Hi,

Is it possible tu use where exist with different data sources.

For instance:

Specs:

A,

B,

from ..../...../......xls

Orders:

Product,

A,

Quantity

from {datasource} where exists A;

If not, any idea how limit Orders with where exists?

Thanks!

12 Replies
Michiel_QV_Fan
Specialist
Specialist
Author

Thanks for your help.

I'm figuring out your script. Haven't got it working yet. It reads the temp table twice and not the RESIDENT table....

Michiel_QV_Fan
Specialist
Specialist
Author

txBilling_temp:
LOAD
ACCTNUM,
AMTPAID,
BILL,
BILLREF,
DATE,
INVOICE,
isAccountInvoiced,
MEDNO,
ReDone;
SQL SELECT * FROM txBilling;

txBilling:
LOAD * RESIDENT txBilling_temp;

drop table txBilling_temp;

Results in nothing....

Anonymous
Not applicable

HI,

QV will auto concatenate if the two adjacent tables have the same columns. Place the word NOCONCATENATE between the two loads to stop this. You will then be able to drop your temp table withouth losing your resident table.

Also, looking at your exists issues.....you can always use left or inner join to overcome your problem. Join the two tables on your DATE field. so.....as a noddy script example.....

Load Date
SQL SELECT .......

left join

Load Date,
col2,
col3,
..............................

This would only give you dates in your second table for dates in your first. etc. etc.

Cheers.

Ad.