I have 1 table called urltracker that holds information about the number of times a specific url has been clicked. The table is structured into 4 columns id, urlclicked, referrer and timestamp. The urltracker creates another entry in the table every time a url has been clicked.
What i would like to do is display a specific url and the number of times it has been clicked, the user would then be able to drill down into the data by clicking to reveal all the specific times this url has been clicked.
I'm no sql expert but this sounds like i need to initially display all the distinct URL's followed by a sub query which displays all the entries for this specfic url.
Am i right in thinking this or is there an easier way?