I'm trying to build a select statement that lists the "root" urls in the database (www.blahblahblah.com,org,etc.). So far, I've got:
SELECT * FROM Links WHERE URL LIKE "http://www.%.___";
Unfortunately, this gives me addresses like www.blah.blah.blah.com. Instead of the "%", how would I tell it I want everything between the first "." and the second "." so that I only get root domain names?
Any help would be very much appreciated.
Thanks,
Sean
SELECT * FROM Links WHERE URL LIKE "http://www.%.___";
Unfortunately, this gives me addresses like www.blah.blah.blah.com. Instead of the "%", how would I tell it I want everything between the first "." and the second "." so that I only get root domain names?
Any help would be very much appreciated.
Thanks,
Sean