/* Recurso MAC Vigente*/

SELECT
    *
FROM
    dbsismac.vw_tetomac_dinamico vw
WHERE
    nu_ano_mes_vig_inici_portaria <= 202405
    AND nu_ano_mes_vig_fin_portaria > 202405
    AND st_excepcional = 'N';