I need to update the name and description in Table 1,
the values from Table 2.
If there are no values in Table 2, then do not overwrite the name or description in Table 1 with null. I made 2 requests and ask them to help me optimize them.
Update requests:
UPDATE final
SET
name = product_info.name
FROM product_info
WHERE final.xml_id = product_info.xml_id
AND product_info.name NOTNULL;
UPDATE final
SET
description = product_info.description
FROM product_info
WHERE final.xml_id = product_info.xml_id
AND product_info.description NOTNULL;

