select * from tabela where relacionamentos like '%.11020.%' and data like '%/1677' and (tipo=11 or tipo=1) order by data asc 22395-01/01/1677 23168-03/05/1677 20940-28/10/1677 25205-07/12/1677 24208-19/12/1677 BANO:61223956123168612094061252056124208