I'm trying to do a between but I do not know how to proceed.
where cliente.id = (select usuario.idCliente from usuario where usuario.login = 'julio') and
(cast(os.dataHora as date) between '2016-09-08' and '2013-10-29')
or
where client.id = (select user.idClient from user where usuario.login = 'julio') and (os.dataHora between '2016-09-08' and '2013-10-29')