UPDATE c
SET
    c.CliRGPDConComercial = 1,
    c.CliRGPDConDatos = 1
    FROM TESISSEG.dbo.Clientes c
WHERE EmpID = 1 AND CliRGPD = 'S' AND CliFecRGPD <= '11-07-2023'