Hi Lorenzo,
I think this should work:
SELECT FROM (
SELECT *, out("hasBusinessLocation")[0].* as location_ from Business
where title = ?
) WHERE location_address = ?
Thanks
Luigi
2016-01-26 0:08 GMT+01:00 Renzo Ludeña <[email protected]>:
> Hi friends, I need your help.
> I have 1 class Business with these data
>
>
> <https://lh3.googleusercontent.com/-nXVRjfYGh1w/VqapndjfBfI/AAAAAAAAALA/atO8q2LQ-Yk/s1600/Selecci%25C3%25B3n_013.png>
> y otra clase BussinessLocation los 2 estan unidos por un borde llamado
> hasBussinessLocation
>
>
>
> <https://lh3.googleusercontent.com/-BVv0Hqm-ugc/Vqap9Rb11YI/AAAAAAAAALI/JihiX7X3zV0/s1600/Selecci%25C3%25B3n_014.png>
>
>
> ahora cuando tengo hacer mi busqueda debo buscar en la clase Business en
> el campo titulo o en el campo direccion de la clase BussinessLocation y
> obtener los datos de la clase Business y la BussinessLocation
>
> gracias por su ayuda
>
> estoy usando orientdb 2.1.4
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "OrientDB" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
---
You received this message because you are subscribed to the Google Groups
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.