SQL de SELECAO do dia Anterior. Saldo Final: 22932.35 SELECT Saldo_Final FROM comissao_flex WHERE Dominio = "292" AND Empresa="1" AND Vendedor="1961" AND Data_Flex<"2021-12-27" ORDER BY Data_flex DESC LIMIT 1