elly.khanlar
Registered User.
- Local time
- Today, 18:35
- Joined
- Oct 3, 2019
- Messages
- 23
Hi everyone,
I'm trying to transpose columns to rows into some existing field, which doesn't turn out to be the result I am looking for. based on my code, the 2019 late rate or 2019 Rebate or 2019 Fee will create a new field instead of layering into the existing field called "Category".
here is my code:
Select Location, Product, Category, " lane rate", [2019 lane rate] AS [2019 Price], "2019 Rebate",[2019 Rebate] AS [2019 Price], "2019 Fee", [2019 Fee] AS [2019 Price],
From [TableABC]
Where [2019 lane rate] is not NULL OR [2019 Rebate] is not NULL OR [2019 Fee] is not NULL
Here is the table I am looking for to get
I'm trying to transpose columns to rows into some existing field, which doesn't turn out to be the result I am looking for. based on my code, the 2019 late rate or 2019 Rebate or 2019 Fee will create a new field instead of layering into the existing field called "Category".
here is my code:
Select Location, Product, Category, " lane rate", [2019 lane rate] AS [2019 Price], "2019 Rebate",[2019 Rebate] AS [2019 Price], "2019 Fee", [2019 Fee] AS [2019 Price],
From [TableABC]
Where [2019 lane rate] is not NULL OR [2019 Rebate] is not NULL OR [2019 Fee] is not NULL
Here is the table I am looking for to get