Created
July 4, 2017 18:40
-
-
Save mvnp/dd01160248ed63d00b6fb23419244d61 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT DISTINCT * from (agenda join TIPOAGENDA ON TIPOAGENDA.tipoagenda_id=AGENDA.tipoagenda) | |
where year(agenda_data)= year(now()) | |
and ADDDATE(agenda_data, INTERVAL 1 MONTH)=ADDDATE(now(), INTERVAL 1 MONTH) | |
order by agenda_data ASC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment