I have a SQL table which looks like:
---------------------
| price |price_two |
---------------------
| 35.90 | 0 |
| 21.90 | 5 |
| 7.90 | 0 |
| 50.21 | 30.29 |
---------------------
And now I want to create a query in SQL which switches all values from price to price_two, where price_two is lower than price but NOT 0.
So, at the end I want this:
---------------------
| price |price_two |
---------------------
| 35.90 | 0 |
| 5 | 21.90 |
| 7.90 | 0 |
| 30.29 | 50.21 |
---------------------
Can I do that and if yes, how?
Greetings and Thank You!