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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Input Variable as parameter for SQL Select statement?

Hi,

I've added an Input box to my sheet that contains a variable called CompanyID. How can I use that variable in my SQL Select statement, which is in my main script (File | Edit Script)? I've tried something like:

select * from company_lkup where company_id = @CompanyID;

but that didn't work.

Does anyone have an example?

Thanks,

Brian

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

select * from company_lkup where company_id = $(CompanyID);

View solution in original post

2 Replies
Anonymous
Not applicable
Author

select * from company_lkup where company_id = $(CompanyID);

Not applicable
Author

Thanks Michael 🙂