I have a table with the name of a group of animals.

It looks like this:

![image_1](https://i.stack.imgur.com/rdqec.png)

Suppose you want to update the data for groups.

* Now, in the record with `group_id` = `2`, the `quantity` changes from `2` to `1`.
* In a record with `group_id` = `3`, `different_aviaries` change from `false` to `true`.
* In a record with `group_id` = `4`, the `group_name` changes to `null`, and the quantity to `0`.

The result should be like this:

![image_2](https://i.stack.imgur.com/DKYG5.png)

How can this be done in a single request?

P.S I greatly simplified the table in the example. In fact, it may be necessary to update 40 records at a time. In addition, the columns in the table from Example 5, but in fact there are 14.