1.I have a vertex class employee which contain employee_details
2.I have a vertex class organization which contain organization_details
3.I have a vertex class insurance which contain insurance_details

following are the relationship

employee-out('belongs_to')->organization-out('provides')->insurance 

eg:sam-out('belongs_to')->'XXX'-out('provides')->medical

but some employee have direct relationship with insurance class without 
organization

employee-out('provides')->insurance

eg:john-out('provides')->health

i need to write a query to show employee with their insurance irrespective 
of organization 

output:

EmployeeName           Organization          Insurance

sam                               XXX                     medical
john                                                            health

-- 

--- 
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 orient-database+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to