CODE: pull out sub domains

WHERE     (PATINDEX(‘%.%’, REPLACE(REPLACE(url, ‘www.’, ”), RIGHT(url, 7), ”)) > 1)

Software engineers do the job better!