select * from tabela where relacionamentos like '%.11020.%' and data like '%/1654' and (tipo=11 or tipo=1) order by data asc 27337-01/01/1654 20875-02/01/1654 20907-17/01/1654 27335-20/01/1654 27336-21/01/1654 20909-10/04/1654 26528-29/05/1654 20590-02/09/1654 BANO:61273376120875612090761273356127336612090961265286120590