Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Mahamed_Qlik
Specialist
Specialist

Script from Query

Hi 

How would I qliksense script for below query:

select count( Prod_id), PROD_DESC

from ProductTable1 A, ProductTable2 B, ProductTable3 C

where  to_char(a.Prod_id) = b.REQUEST_NUMBER

AND c.STEP_CODE = b.STEP_CODE

and HIST_PROCESS_ID= select max (HIST_PROCESS_ID) from ProductTable2  

where PROCESS_ID = b.PROCESS_ID)

GROUP by PROD_DESC;

Labels (1)
2 Replies
anat
Master
Master

you can execute the same SQL query in Qlik.

or 

Table:
select Prod_id, PROD_DESC

from ProductTable1 A, ProductTable2 B, ProductTable3 C

where to_char(a.Prod_id) = b.REQUEST_NUMBER

AND c.STEP_CODE = b.STEP_CODE

and HIST_PROCESS_ID= select max (HIST_PROCESS_ID) from ProductTable2

where PROCESS_ID = b.PROCESS_ID);
noconcatenate
Table1:
load count(Prod_id), PROD_DESC resident Table group by PROD_DESC;
drop table Table;

vinieme12
Champion III
Champion III

there is no concept of querying multiple tables in the same load statement like databases; you can just use the same query to load the data from database into qlik

 

Please provide more context on what you are tying to do here

 

ODBC connect to ....;

TableName:

SQL select count( Prod_id), PROD_DESC

from ProductTable1 A, ProductTable2 B, ProductTable3 C

where  to_char(a.Prod_id) = b.REQUEST_NUMBER

AND c.STEP_CODE = b.STEP_CODE

and HIST_PROCESS_ID= select max (HIST_PROCESS_ID) from ProductTable2  

where PROCESS_ID = b.PROCESS_ID)

GROUP by PROD_DESC;

Disconnect;

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.