Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Pass dynamic parameters in sql script

Vikas038
8 - Asteroid

Hi Team,

 

My requirement is to pass dynamic parameters through within sql script similar to SSRS reports.

 

Steps that i will follow in Alteryx.

 

1. Pass Sql script via input data option. My script will be like below:-

*********************Sample Script**********************************

select * from view_mdc_ma_research
where dateofconsumption>=date'@Startdate' and dateofconsumption<=date'@Enddate'

***********************************End**********************************

2. please suggest me that how can i make users capable to pass dynamic dates to replace @Startdate and @Enddate. 

3. I have to place an application based on this requirement on Gallery

 

I have to deploy some urgent reports to showcase further. Please share sample workflow as well for workable solutions.

2 REPLIES 2
afv2688
16 - Nebula
16 - Nebula

Hello @Vikas038 ,

 

I would use interface tool to update the query like this.

 

Sin título.png

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Regards

Vikas038
8 - Asteroid

Thanks, Team.

 

It is working for me.

Labels