I'm trying to fetch the last id value of the database using the select query in JDBC request and I need to pass the id as the starting value for the counter. I tried adding the variable in the counter as ${variable} / ${variable_1} but nothing worked for me.
here i need to pass the value of that variable to starting value of counter
How can i achieve the same?
I have tried adding ${status}, ${status_1} but both didn't work for me

According to JDBC Request sampler documentation
So if your JDBC PreProcessor runs successfully you should have the following variables set up:
${status_#}with the value of1${status_1}with the return value of your SQL queryThe JMeter Variables which are pre-defined and created can be visualized using Debug Sampler and View Results Tree listener combination.
My expectation is that your SQL statement fails somewhere somehow, i.e. you need to remove the semicolon
;from it.