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

WHERE Statement in REST Connection

Hello,

After loading data using a REST Connector I need to include a WHERE statement as follows, but it's not working. It returns an error that i can't understand. Is it possible to include a WHERE there?

RestConnectorMasterTable:

SQL SELECT

"Status",

"High",

"Low",

"Open"

FROM XML "StockQuote"

WHERE [Status]='SUCCESS';


[StockQuote]:

LOAD [Status],

[High],

[Low],

[Open]

RESIDENT RestConnectorMasterTable;


DROP TABLE RestConnectorMasterTable;


WHERELOCO.JPG


I've tried many options, please, help.


Thanks,


Alazne.

3 Replies
PrashantSangle

Try below

1 : RestConnectorMasterTable:

Load * Where Status='SUCCESS';

SQL SELECT

"Status",

"High",

"Low",

"Open"

FROM XML "StockQuote"

WHERE [Status]='SUCCESS';


2:

SQL SELECT

"Status",

"High",

"Low",

"Open"

FROM XML "StockQuote";


[StockQuote]:

LOAD [Status],

[High],

[Low],

[Open]

RESIDENT RestConnectorMasterTable

where Status = 'SUCCESS';


DROP TABLE RestConnectorMasterTable;


Regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Anonymous
Not applicable
Author

Thanks, it seems that preceding load works, but i undestand that preceding load filters data after loading it.

What I need, because of the data volume, is to filter data while loading (SQL SELECT) and thus reduce the volume of downloaded data. Is that possible?

PrashantSangle

Hi,

I did not remember properly Some where I read that you can't write where clause on XML data...

Regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂