Please help me, how to filter words in SQL using a function?
I’m having a hard time if I explain it so I’m giving example:
ID | WebsiteName |
-----------------------------------
1 | www.yahoo.com |
2 | www.google.com |
3 | www.youtube.com |
What I want is, how to get the name of the website. I want to select the record with an output like this. How to remove the ‘www.’ and ‘.com’ in the record.
ID | WebsiteName
--------------------------
1 | yahoo
thanks for the help. 😀
How about this?
and then use:
Of course, this is severely limited in that it will only strip
www.at the beginning and.comat the end – nothing else (so it won’t work on other host machine names likesmtp.yahoo.comand other internet domains such as.org,.edu,.deand etc.)