select * from tabela where relacionamentos like '%.1122.%' and data like '%/1766' and (tipo=11 or tipo=1) order by data asc 25857-01/01/1766 1727-02/01/1766 22266-06/01/1766 22242-01/04/1766 9382-07/04/1766 8278-03/07/1766 23410-03/07/1766 14169-09/07/1766 14227-22/07/1766 24236-22/07/1766 22245-23/07/1766 1729-23/07/1766 23422-26/07/1766 1731-02/08/1766 8283-04/08/1766 22246-04/08/1766 1733-09/08/1766 23407-10/08/1766 6212-11/08/1766 8295-16/08/1766 21681-20/09/1766 23411-06/10/1766 22260-02/11/1766 23412-09/12/1766 25421-20/12/1766 26506-23/12/1766 BANO:61258575117276122266612224251938251827861234106114169611422761242366122245511729612342251173151828361222465117336123407516212518295612168161234116122260612341261254216126506