First thing I'm sorry for stealing your time.
What you say is true in this case, but what about case which i would add a
constraint to Vehicle:

query "QuerySelected" 
        $result: Person( identifierCode == "ABCDEF12H45S100A" ) 
        $y: YearData( id ==  $result.identifierCode ) 
        exists Vehicle( model == "foobar" ) from $y.vehicles 
end 

Then again maybe my question is stupid.

Andrea



--
View this message in context: 
http://drools.46999.n3.nabble.com/distinct-operator-in-a-query-tp4026762p4026769.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to