Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

load fields from two .qvd file

Hi,
How can I select fields from two .qvd file? I have used Qualify statement to join fields in different tables, but sometimes it is not enough. Here is simply SQL statement example what I mean.

Directory;

LOAD ID,

FIRSTNAME,

LASTNAME

FROM Customer.qvd (qvd);

Directory;

LOAD ID,

STREETNAME,

CITY,

COUNTRY

FROM Address.qvd (qvd);

With SQL

SELECT c.firstname, c.lastname, a.city
FROM Customer c
JOIN Address a ON c.id=a.id

3 Replies
Anonymous
Not applicable
Author

hi jaana ,when you load the fields in edit script first you should name the tableas you like(in your's appl directory)then you can save the script(cntrl+s)>>run the edit script(cntrl+e)>>here you will get the fields you are loaded.

Not applicable
Author

I try to ask, can I load data like this (syntax is not correct)? If I can -> please, tell me correct syntax!

LOAD

FIRSTNAME,

LASTNAME,

CITY

SELECT c.firstname as FIRSTNAME,

c.lastname AS LASTNAME,

a.city AS CITY

FROM Customer.qvd (qvd);

JOIN Address.qvd (qvd) ON c.id=a.id;

Anonymous
Not applicable
Author

Hi, you should be able to do something like this:

TEMP:
LOAD ID,
FIRSTNAME,
LASTNAME
FROM Customer.qvd (qvd);

JOIN (TEMP)
LOAD ID,
STREETNAME,
CITY,
COUNTRY
FROM Address.qvd (qvd);

TABLE_NAME:
Load
FIRSTNAME,
LASTNAME,
CITY
Resident TEMP;

Drop table TEMP;