I'm trying to display from a log table records that have unique counter fields and date, and often the same IP address creates multiple entries, but I'd only want one record per IP address, and have all of it sorted by the date created.
here is what I have now, but it is still not listing unique IPs only:
what am I doing wrong?
here is what I have now, but it is still not listing unique IPs only:
Code:
SELECT * FROM (SELECT DISTINCT UserIP FROM dbo.tblReklamLog) AS C1 JOIN dbo.tblReklamLog AS C2 ON C1.UserIP = C2.UserIP WHERE ReklamKod = 'AUW1GMZU' ORDER BY DateCreated Desc
what am I doing wrong?