[orientdb] Re: Query on vertex degree, SQL

2017-01-17 Thread Peter Figliozzi
Thanks guys! Both answers are informative. -- --- 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,

Re: [orientdb] Query on vertex degree, SQL

2017-01-17 Thread Luigi Dell'Aquila
Hi Pete You can find my answer on SO Thanks Luigi 2017-01-16 19:36 GMT+01:00 Peter Figliozzi : > I would like to retrieve all vertices in a SQL query that have at least > one connection (non-zero degree). Just returning the rid is probably OK, > but it would be nice

[orientdb] Re: Query on vertex degree, SQL

2017-01-17 Thread Claudio Massi
You can start with: select @rid,$i,$o from V let i=in().size(),o=out().size() where sum($i,$o)=1 Il giorno lunedì 16 gennaio 2017 19:43:12 UTC+1, Peter Figliozzi ha scritto: > > I would like to retrieve all vertices in a SQL query that have at least > one connection (non-zero degree). Just