I have a table
| Date | trial | value |
|---|---|---|
| 2020-12-10 | false | 100 |
| 2020-12-10 | true | 200 |
| 2020-12-11 | false | 150 |
| 2020-12-11 | true | 350 |
I want result
| Date | total | value1 |
|---|---|---|
| 2020-12-10 | 300 | 100 |
| 2020-12-11 | 500 | 150 |
Where value1 is the value when trial=false. what is the SQL query to do this? Thanks in advance