My SQL query looks like this:
SELECT DISTINCT ip, title, url
FROM stats;
My goal is to select one row for each distinct ip, along with title and url; however I find when I add the title and url fields to my query it shows me all rows.
Sample Data
ip title url
---------------------------
127.0.0.1 title url
127.0.0.2 title url
127.0.0.1 difftitle url
Result I would like
ip title url
---------------------------
127.0.0.1 title url
127.0.0.2 title url
titleandurlperip? What determines whichtitleandurl? Or do you not care which one is shown?