For anybody else coming along here is the sample data in a format that is consumable.
CREATE TABLE clicks (RecordDay datetime, ClickCount INT)
GO
INSERT INTO clicks (RecordDay, ClickCount)
select '2013-10-05 13:23:44', 2 union all
select '2013-10-05 15:45:21', 6 union all
select '2013-10-05 16:45:21', 1 union all
select '2013-10-05 17:45:21', 12 union all
select '2013-10-04 18:45:21', 3 union all
select '2013-10-03 19:45:21', 24 union all
select '2013-11-02 20:45:21',3
_______________________________________________________________
Need help? Help us help you.
Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.
Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/