There are links stored in a DB as varchars. With these links I want to use GROUP BY.
http://example.com
http://example.com
http://example.com
SQL over that data:
SELECT COUNT(*) c, Url
FROM Advertisements
GROUP BY Url
I want this output:
c Url
3 http://example.com
But instead I get this three times:
c Url
1 http://example.com
Why doesn't SELECT group the varchar fields? They are the same but GROUP BY does not detect that. Any ideas?