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

TEMPORAL TABLES

Hi,

Anyone can give me a little explanation on how can i make temp tables on qv script plz?, or how can i handle sql temp tables on the qv script plz.

Any help will be appreciate.

Carlos

4 Replies
johnw
Champion III
Champion III

Here is an example of creating a temp table from an SQL temp table, if I understood your question:

MyTempTable:
LOAD *
;
SQL
SELECT Z, A, B, A+B AS C FROM (
SELECT Z, MAX(ABC) AS A, SUM(XYZ) AS B
FROM some table
WHERE some condition
GROUP BY Z ) AS TEMPTABLE
;
...
Do things with MyTempTable
...
DROP TABLE MyTempTable
;

Not applicable
Author

Thanks a lot John, you were very helpful.

Regards

CArlos

Not applicable
Author

Hi, Carlos.

In the other way, you can create temp tables witch "Load InLine ..." statement manually.

This is only usefully for short quantity of data. For example you can make something like this


TempTable:
Load * inline
[campo1texto,campo2numero,campo3texto
"1",1,"texto1"
"2",2,"texto 2"
];



Not applicable
Author

Hi Carlos,

Thanks for your post.

Regards

Carlos