I want to get all the products by range price with discount.
this is what it looks like in sql:
WHERE ( CASE WHEN p.discount IS NOT NULL THEN ROUND(