select * from tabela where relacionamentos like '%.10641.%' and data like '%/1838' and (tipo=11 or tipo=1) order by data asc 6310-01/01/1838 27973-01/01/1838 19213-01/01/1838 9300-01/01/1838 9301-01/01/1838 26216-01/01/1838 1965-01/01/1838 1964-01/01/1838 19209-03/01/1838 19206-31/01/1838 19201-17/02/1838 19200-02/03/1838 19199-30/03/1838 19210-31/03/1838 23998-12/04/1838 19207-30/04/1838 1969-15/06/1838 6314-16/07/1838 6355-18/07/1838 6646-21/08/1838 6362-21/08/1838 9323-03/09/1838 28058-02/10/1838 19212-23/10/1838 19205-01/12/1838 24084-12/12/1838 BANO:516310612797361192135193005193016126216511965511964611920961192066119201611920061191996119210612399861192075119695163145163555166465163625193236128058611921261192056124084