79518220

Date: 2025-03-18 17:15:41
Score: 0.5
Natty:
Report link

If you're using SQL Server, you're looking for UNPIVOT:

select Location, Type, Date, Account, Value
from t unpivot (Value for Account in (Quantity, Net)) av;

See it running on some of your data.

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Guillaume Outters