WindmillWWindmill
Powered by
BestCareAnyLeaB
Windmill•2y ago•
2 replies
BestCareAnyLea

Reference component with MySQL

Hello, I've got a MySQL database and want to include the properties of a rangeslider component in my SQL query. The rangeslider has the id h and result[0] is the min value currently selected. My query currently looks like this but it does not work, I have tried different ways of referencing the component.

SELECT Product, (Unit_Price - Unit_Cost) AS db
FROM FullBike
GROUP BY Product, db
HAVING db BETWEEN ${h.result[0]} AND ${h.result[1]}
ORDER BY db DESC;

Is there a way to do this just within the SQL query without an additional script? Thanks in advance
WindmillJoin
3,362Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
henri-c

Weekly kenote to tell you about our latest updates https://discord.com/channels/930051556043276338/1278977038430240813 https://youtube.com/live/2dGd9TdT8xs?feature=share

henri-c · 4d ago

Pyra

### HTTP tracing (EE) Capture HTTP requests made by job scripts as observability spans Features: - View HTTP request traces (method, URL, status, timing) in the job details UI - Auto-instrumentation for Native TypeScript, MITM proxy for other languages - Integrates with external OpenTelemetry collectors changelog: https://www.windmill.dev/changelog/http-tracing docs: https://www.windmill.dev/docs/advanced/instance_settings#http-tracing Additionally jobs memory metrics are now fully OSS!

Pyra · 2w ago

henri-c

First keynote of the year here https://discord.com/channels/930051556043276338/1278977038430240813 🙂

henri-c · 4w ago

Similar Threads

Create Mysql resource with client certificate
skymagicSskymagic / help
9mo ago
Mysql script : issue with IN(...) syntax
Chris_BLZCChris_BLZ / help
17mo ago
MySQL script - Argument support list
CitizenCCitizen / help
9mo ago
SSH Tunneling for MySQL resources?
JeffJJeff / help
3y ago