I have a table called Configuration. The 1st column of the table is deviceId, the 2nd column is parameter, 3rd column is value.
In the table, there are many devices, each device has only one device ID(column 1); each device has many config parameters(column 2), ex. VER, DATE, etc, all devices have the same config parameters; the parameter's value(column 3) for different devices may be the same or not.
I want to insert a new config parameter say TITLE with value newDevice to the devices which has config parameter DATE value larger than '2019-05-01'.
How can I achieve this in one PostgreSQL query?