I have a MySQL table and I need to retrieve some fields from it.
I need the string that contains H_
and HP_
Separately using two different query.
But the problem is the underscore is in the wildcard and i am unable to find correct result.
Example Query of HP_
SELECT nc.`logname`, nc.`client_id`, nc.`Customer_Name`, cb.`bwm_day_cir_upload`, cb.`bwm_day_cir_download`
FROM `new_client` nc
LEFT JOIN `client_bandwidth` cb ON cb.`client_id` = `nc`.`client_id`
WHERE nc.`logname` LIKE '%HP_%' AND nc.`Active` = 'y' ORDER BY TRIM(UPPER(nc.`logname`))