Skip to content
Advertisement

How to select multiple cells in one specific column from a table

My goal is to SELECT Each VALUE to where it has it’s own cell for the input of a report… For example.

ETC…. The end result I am looking for is to have all cells from the value column as their own column individually so I can input them in a telerik report using field inputs.

Thanks

Advertisement

Answer

Your table is a typical unnormalized key-value store. You may achieve what you want by aggregating on the UID column and the pivoting out the values, given each key:

Note the KEY is usually a reserved keyword in most versions of SQL. Hence, I placed your KEY column in double quotes. You should avoid naming your database objects using keywords.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement