• astrid 69000 (10/8/2013)


    i am trying to get

    on the columns the dates

    on the rows the hours (from those dates)

    and the sum of the clicks as a measure.

    the same i gave has a few lines but the original table has over a million.

    i will keep in mind your notes on how to post.

    thanks for the help

    I am still a little bit confused as to what you want as output. Can you provide the details of your desired output based on the sample data you provided?

    _______________________________________________________________

    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/