OK, I am not sure how to describe this. I guess I want to flatten a table into two columns... so basically pivot. Though I can't aggregate it like I could if it was quarter 1 sales, etc... <BR><BR>I'm ...
I always find the need to pivot data, but don't always know the data that I need to pivot. Currently, with TSQL you have to 'Explicitly' list the Data that you want, as column names. But what if you ...
CheckListItems CheckListItemId ItemName 1 name1 2 name2 3 name3 4 name4 5 name5 ... I can't seem to get the PIVOT syntax correct- it has to be dynamic as I don't know all the ItemNames (and there ...
Transact-SQL reference for PIVOT and UNPIVOT relational operators. Use these operators on SELECT statements to change a table-valued expression into another table.
You will often find that data stored in rows in normalized tables isn't in the prettiest form to display to an end user. Often, data will make more of an impact if it is displayed as a single row for ...