select * from tabela where relacionamentos like '%.10648.%' and data like '%/1867' and (tipo=11 or tipo=1) order by data asc 9601-01/01/1867 29923-01/01/1867 10276-14/03/1867 10347-19/03/1867 11689-17/08/1867 6902-02/10/1867 BANO:5196016129923611027661103476111689516902