select * from tabela where relacionamentos like '%.10951.%' and data like '%/1638' and (tipo=11 or tipo=1) order by data asc 21919-01/01/1638 20410-01/07/1638 11275-03/07/1638 20407-24/07/1638 5232-01/11/1638 12639-03/12/1638 BANO:61219196120410611127561204075152326112639