My SQL exposure is relatively basic. I was wondering if it is possible to build a command that can retrieve data from a table into new columns.
I have a table with the following columns:
AccountNo
Ccy
Amount
where the Ccy is always either GBP or USD.
I want to create an SQL statement that can return me a new table as follows:
AccountNo
AmountGBP
AmountUSD
Can this be done with one command?
I have a table with the following columns:
AccountNo
Ccy
Amount
where the Ccy is always either GBP or USD.
I want to create an SQL statement that can return me a new table as follows:
AccountNo
AmountGBP
AmountUSD
Can this be done with one command?