select * from tabela where relacionamentos like '%.1174.%' and data like '%/1873' and (tipo=11 or tipo=1) order by data asc 5996-01/01/1873 7547-21/01/1873 7548-23/03/1873 14803-29/05/1873 7647-01/08/1873 7552-21/08/1873 7553-20/12/1873 BANO:5159965175475175486114803517647517552517553