2017-08-03 94 views
0

我有DB與下面的模式 enter image description hereOrientDb - 進行查詢

我想進行查詢,發現所有這些都只有「A」和dont't有「B」作爲他們後裔的頂點(C .out('RepositoryEdge'))out('InfoEdge')) 對於特定示例,只有頂點#33:53滿足此條件

如何進行我的查詢? 在此先感謝

回答

2

試試這個:

select from <class-name> where @rid not in (select in("InfoEdge").in("RepositoryEdge") from #42:0) and @rid in (select in("InfoEdge").in("RepositoryEdge") from #41:5) 

希望它可以幫助

問候

+0

偉大的想法,從反向出在旅行社!!!!」 – Robob