select * from tabela where relacionamentos like '%.10641.%' and data like '%/1684' and (tipo=11 or tipo=1) order by data asc 23611-01/01/1684 9430-01/01/1684 6147-01/01/1684 13423-01/01/1684 21713-01/01/1684 15568-01/01/1684 9427-01/02/1684 25518-15/07/1684 23814-08/10/1684 9431-01/12/1684 BANO:612361151943051614761134236121713611556851942761255186123814519431