I have a table and it needs to change
Key Value
CapacityColdBTU 2000
PowerLevelCold B
Inverter/Standard Standard
CapacityColdBTU 1500
PowerLevelCold B
Inverter/Standard Inverter
The table should look like below before I use it. I cannot use the table in searching with more than 1 criteria. How do I change it?
CapacityColdBTU PowerLevelCold Inverter/Standard
2000 B Inverter
Thank you
You can use
PIVOT:See SQL Fiddle with Demo
Or you can use a
CASEstatement with aggregate, note this version generates the result you have listed with theInvertervalue in the[Inverter/Standard]field:See SQL Fiddle with Demo
If you have an
idor some field that identifies each of these fields with a main record, then you can display the values for each id.