The database is currently formatted as follows:
id (unique identifier)
url: http://domain.com/page.html
URLs are from the same domain and from different domains.
This also needs to be done in a single request so that I can use things like restrictions on displaying data to the end user.
Data
1, http:
2, http:
3, http:
4, http:
Expected Result
(I just want to return the first URL (the data sorting order is ever ordered first, this example is an "ASC id") of each group, where the groups consist of URLs that share the root domain.)
1, http:
3, http: