MySQL Query

next question :blush:
is it possible to use a variable (eg from a sensor) in the sql statement?
something like
image

i’ve tried to find some solution in the thread

but was unable to decode the right syntax.