I have a table that has rows that look like this
| Account | Currency | Amount |
|---|---|---|
| 1 | USD | 5 |
| 1 | EUR | 10 |
| 2 | USD | 8 |
| 3 | EUR | 4 |
Is there a way to do a select query so it would return something like
| Account | amount_usd | amount_eur |
|---|---|---|
| 1 | 5 | 10 |
| 2 | 8 | |
| 3 | 4 |
usd and eur are hardcoded, so i dont have to build the name from the column.