Anyone please help me how to get this. -Sukaant Chaudhary
[image: linkedinbutton]<http://in.linkedin.com/pub/sukaant-chaudhary/33/ba8/479/> On Tue, Mar 4, 2014 at 6:03 PM, Sukaant Chaudhary < [email protected]> wrote: > Hi, > In the following query I want to add the highlighted conditions with bold, > Please help me how to add: > > START n=node(2) > MATCH (n)-[:FOLLOWED_BY*..5]->(m) > WITH DISTINCT m > > MATCH (m)-[:PUBLISHED_UNDER*..5]->(q)<-[:PUBLISHED_BY*..5]-(k)*, > (q)-[l:LOCATION]->(t) //Add This* > > WHERE (q.eventStartDate + q.eventStartTime >= "2014-03-0417:34:37" > OR q.eventEndDate + q.eventEndTime >= "2014-03-0417:34:37") > > *AND has(l.locationType) AND (l.locationType = 'PERMANENT') ** > //Add This* > > RETURN k,m,q > ORDER BY q.eventStartDate + q.eventStartTime ASC > SKIP 1 LIMIT 25; > > -Sukaant Chaudhary > > [image: > linkedinbutton]<http://in.linkedin.com/pub/sukaant-chaudhary/33/ba8/479/> > -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
<<inline: image002.jpg>>
