I have to trim the website name upto “.com” or”co.in” in sql
example: lets assume i have site address as”http://stackoverflow.com/questions/ask?title=trim”.
I need to get the result as “stackoverflow.com”.
some scenario it may be like “www.google.co.in” then i need it to be “google.co.in”
Please use the below SQL code to extract the domain name: