• branovuk (8/7/2013)


    I think I explained very detailed what I need in one of my posts.

    Please check and let me know if anything missing in my second explanation:

    Simply reposting the same thing is really not very helpful. You want help with code right? We need some tables and data to work with. You need to post create table scripts and inserts. Remember that we can't see your screen, we have no idea what your tables or data look like and we are not familiar with your project. It seems that you have some sort of EAV construct you are working with here. That is about all I can figure out.

    _______________________________________________________________

    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/