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: 
Carlaf_93
Creator II
Creator II

LOADING DATA WITH 'WHERE' CONDITION

Good morning,

i would like to load data from a db with some conditions. I want year>2019 and a field=A

so I'm writing this:

 

LIB CONNECT TO '.......'; 

LOAD  
YEAR,
DDOCTIPOARTICOLO,
DDONCOSTO;

[tableA]:
SELECT

YEAR,
DDOCTIPOARTICOLO,
DDONCOSTO
FROM AAAA

WHERE YEAR>2019 AND
where DDOCTIPOARTICOLO='A';
STORE [tableA] INTO [lib://QVD/tableA.qvd] (qvd);

 

But this doesn't work.  Can someone help me?

Thanks.

1 Solution

Accepted Solutions
Kushal_Chawda

There is a typo in your query. You have written where twice. Try below

LIB CONNECT TO '.......'; 

LOAD  
YEAR,
DDOCTIPOARTICOLO,
DDONCOSTO;

[tableA]:
SELECT

YEAR,
DDOCTIPOARTICOLO,
DDONCOSTO
FROM AAAA

WHERE YEAR>2019 AND
where DDOCTIPOARTICOLO='A';
STORE [tableA] INTO [lib://QVD/tableA.qvd] (qvd);

View solution in original post

1 Reply
Kushal_Chawda

There is a typo in your query. You have written where twice. Try below

LIB CONNECT TO '.......'; 

LOAD  
YEAR,
DDOCTIPOARTICOLO,
DDONCOSTO;

[tableA]:
SELECT

YEAR,
DDOCTIPOARTICOLO,
DDONCOSTO
FROM AAAA

WHERE YEAR>2019 AND
where DDOCTIPOARTICOLO='A';
STORE [tableA] INTO [lib://QVD/tableA.qvd] (qvd);