I have tried to search for help on existing threads but I found myself at lost because of the answers.
Here's my scenario:
I have two tables: ACCOUNTS, NET_PROCEEDS
ACCOUNTS table has:
- Account_ID
- Account_Name
- Account_Description
NET_PROCEEDS table has:
- Net_Proceeds_ID
- Account_ID
- Fiscal_Year
- Amount
Now my basic sql can join two tables with this output:
Account_ID | Account_Name | Account_Description | Fiscal_Year | Amount
But I am trying to come out with this output:
Account_ID | Account_Name | Account_Description | 2016 | 2017 | 2018 | 2019
The fiscal_year will become a column with a value of amount.
Any thoughts? I will appreciate your help. P.S I can't share the code, due to confidentiality. Thanks.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire