I am trying to remove some information off urls that are placed into my database. I have this query that I am using:
Select substring_index(refurl,'?gclid',1) as refurl, Count(*)
from leads
group by substring_index(refurl,'?gclid',1)
But for the delimiter I really need to take off both of these:
?gclid or &gclid
Is this possible by doing an OR statement within the substring or is it something completely different to get this done?