Reference component with MySQL
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