Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Suggestion for alternative to pivot?

$
0
0

I have a table on a linked server which I access via a synonym.

The table has 75 columns, and only one row used to set up the application visible fields etc.

The table columns are something like:

loc_usage, loc_valid, material_usage,material_valid, screen_usage, screen_valid.

I want to convert this into something a bit more friendly in my database so it's in rows rather than columns like:

parameter Name   Usage   Valid

location                 M         1

material                O          1

Any ideas how I would go about achieving this, would I have to go through and do select / union on each value?

Thanks


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>