In case you have your own slow SQL query, you can optimize it automatically here.
For the query above, the following recommendations will be helpful as part of the SQL tuning process.
You'll find 3 sections below:
SELECT
t.*,
CASE
WHEN LENGTH(t.CUSTOMER_NO) != '6'
AND t.text LIKE '%Nike%'
OR t.CUSTOMER_NO IS NULL
AND t.text LIKE '%Nike%' THEN 'NIK001'
WHEN LENGTH(t.CUSTOMER_NO) != '6'
AND t.text LIKE '%Nike%'
OR t.CUSTOMER_NO IS NULL
AND t.text LIKE '%Reebok%' THEN 'REB001'
ELSE t.CUSTOMER_NO END AS CUSTOMER_NO_ADJUSTED
FROM
gen_led_voucher_row_tab t