select * from tabela where relacionamentos like '%.10641.%' and data like '%/1813' and (tipo=11 or tipo=1) order by data asc 9087-01/01/1813 24878-01/01/1813 5088-13/01/1813 13636-21/04/1813 26639-02/06/1813 1880-01/08/1813 24092-10/11/1813 8493-17/12/1813 BANO:5190876124878515088611363661266395118806124092518493