Without where key word check condition for < and > between parentheses

16 views
Skip to first unread message

Pugazharasan Thirumalai

unread,
Jun 5, 2017, 6:59:37 AM6/5/17
to OrientDB

Hai ,

select outE('store_has_billing').inV()[gross_value =100] as grossValue from  #48:1635

If i run the above query it will execute, but if i use < or > for check condition its not working.

For example,

select outE('store_has_billing').inV()[gross_value > 100] as grossValue from  #48:1635.

By where condition we can execute the query but i need how to check condition between parentheses. 


Thanks and regards,
T.Pugazharasan

Ivan Mainetti

unread,
Jun 5, 2017, 7:48:26 AM6/5/17
to orient-...@googlegroups.com
HAI,
you can't use < > in square parenthesis conditions.

Besides, could you share a small sample db for testing?

Luigi Dell'Aquila

unread,
Jun 5, 2017, 8:17:46 AM6/5/17
to orient-...@googlegroups.com
Hi, 

Which version of OrientDB are you using?
We recently fixed some parsing issues in square brackets

Thanks

Luigi


2017-06-05 13:48 GMT+02:00 Ivan Mainetti <user.w...@gmail.com>:
HAI,
you can't use < > in square parenthesis conditions.
Il giorno lunedì 5 giugno 2017 12:59:37 UTC+2, Pugazharasan Thirumalai ha scritto:

Hai ,

select outE('store_has_billing').inV()[gross_value =100] as grossValue from  #48:1635

If i run the above query it will execute, but if i use < or > for check condition its not working.

For example,

select outE('store_has_billing').inV()[gross_value > 100] as grossValue from  #48:1635.

By where condition we can execute the query but i need how to check condition between parentheses. 


Thanks and regards,
T.Pugazharasan

--

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

Pugazharasan Thirumalai

unread,
Jun 5, 2017, 8:18:21 AM6/5/17
to OrientDB
select outE('store_has_billing').inV().gross_value as gv from #48:1635

[887.16,2501.5,3075.1,1240.2,920,800,3044.5,2012.5,1092.5,5115.3,5375.7,2007.92,1150,1500,280,1498.5,200,180,853,1916,960,170,380,790,790,12860,790,1500.01,800,1773,12200,0,0,1650]


select from billing

METADATAPROPERTIESINOUT
@rid
@class
@version
discount_percentage
discount_value
reward_points_value
tax_value
gross_value
payment_mode
is_deleted
payment_status
bill_number
is_cancel
actual_tax_value
created_date
store_has_billing
appointment_has_billing
customer_has_billing
billing_has_payment_history
billing_has_billing_services
#339:0billing600001630#30:383false1999-0false02016-01-08 13:04:12
#339:1billing60000686#30:383false1999-1false02016-01-08 13:08:16
#339:2billing6000107.661764#30:383false1999-2false107.662016-01-08 13:10:40
#339:3billing600001198#30:383false1999-3false02016-01-06 13:13:59
#339:4billing60000850#30:382false1999-4false02016-01-08 13:17:19
#339:5billing60000800#30:382false1999-5false02015-05-05 13:21:08

Pugazharasan Thirumalai

unread,
Jun 5, 2017, 8:22:55 AM6/5/17
to OrientDB

Studio version : 2.0

OrientDB version : 2.0.18

Home Page : https://github.com/orientechnologies/orientdb-studio

Copyrights : Orient Technologies LTD

License : Apache 2


We tried to migrate new version but facing problems on  change query on multiple places.

Luigi Dell'Aquila

unread,
Jun 5, 2017, 8:26:18 AM6/5/17
to orient-...@googlegroups.com
Hi Pugazharasan,

v 2.0 is no longer supported, unfortunately in that version you cannot execute filtering with < > between square brackets

Thanks

Luigi


--

Pugazharasan Thirumalai

unread,
Jun 5, 2017, 8:59:53 AM6/5/17
to OrientDB
Hai Luigi,

Okay, Thank you.

Thanks and Regards,
T.Pugazharasan


Reply all
Reply to author
Forward
0 new messages