I have this table
+--------+--------------+----------------+--------------+----------------+
| XPK | First_count | First_amount | Second_count | Second_amount |
+--------+--------------+----------------+--------------+----------------+
| 1 | 10 | 2000 | 20 | 5000 |
+--------+--------------+----------------+--------------+----------------+
Need to get result like this, sum and pivot:
+-------------+------------+
|Total_count | 30 |
|Total_amount | 7000 |
+-------------+------------+
I need to use pivot, but how?
Using MS SQL Server 2014