select * from tabela where relacionamentos like '%.10787.%' and data like '%/1634' and (tipo=11 or tipo=1) order by data asc 12684-07/12/1634 12901-09/12/1634 12749-10/12/1634 12793-14/12/1634 12808-16/12/1634 12889-18/12/1634 12885-19/12/1634 BANO:6112684611290161127496112793611280861128896112885