Skip to content
Advertisement

SQL Query – SQL Server 2014 – Combine Multiple Colums in Select (Lookup?)

I have this current query (more info than really needed to show):

The query returns this output:

I need to modify this query so that it only shows IBX, Tanks ID (Where Index != 0) and its associated Level.

Level 1 goes to Index 1, Level 2 goes to Index 2, and Level 3 goes to Index 3

I’ve tried all sorts of variations, but I cannot get it to work.

Desired output:

Advertisement

Answer

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