select * from tabela where relacionamentos like '%.10951.%' and data like '%/1677' and (tipo=11 or tipo=1) order by data asc 25058-15/01/1677 10153-04/03/1677 20417-06/03/1677 22556-28/05/1677 20112-04/12/1677 BANO:61250586110153612041761225566120112