Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
BNP
Contributor
Contributor

Read multiple sql queries in text or excel file

Hi ,

 

I want to read multiple sql queries in text or excel.file.retrieve the data from Database using tflowtoiterate can someone help me

Labels (2)
5 Replies
nivedhitha
Creator III
Creator III

@BNP , sure but what is the current job design and where exactly do you need help with?

 

On a high level the design has to be like 

Parent Job ----  tFileExcelInput -> tFlowToIterate -> tRunJob(child job)

-Pass the query to the child job as a context variable (any any other data from the excel that the database load needs)

Child Job ----- tDbInput -> tDbOutput

Child job has context variables to hold values being passed by the parent job

BNP
Contributor
Contributor
Author

Instead of running child job. Can we use global variables?.
manodwhb
Champion II
Champion II

@BNP , Yes you can use the global variables of tFlowtoIterate. and your job design should be like below.

 

tFileExcelInput -> tFlowToIterate --iterate-- tDbInput -> tDbOutput

 

 

BNP
Contributor
Contributor
Author

Hi,

 

Thank you for replied.

I have save file name as SQL Statement, and i mention schema as Statement, Query.

In tDBinput table field and Query what should enter. i have attached error images. 

Ex:

(String)globalMap.get("row.ColName")

 

in row.colname, what should enter. 

 

Thank you


Capture.GIF
Capture1.GIF
manodwhb
Champion II
Champion II

Hi, you need to we the global variable in tdbinput . are queries are select staments?