Try using the IN operator [1]:

MATCH (channel:Channel)
WHERE channel.name in ["Zee", "Star", "Sony"]
RETURN DISTINCT channel.name AS channelName;



[1] http://docs.neo4j.org/chunked/stable/query-where.html#where-in-operator

On Fri, Oct 10, 2014 at 5:14 AM, Sukaant Chaudhary <
[email protected]> wrote:

> Hi
> I want to merge the following query to one as I will get *n no of names*:
>
>
>
>
>
>
>
>
>
> *MATCH (channel:Channel {name:"Zee"}) RETURN DISTINCT channel.name
> <http://channel.name> AS channelName;MATCH (channel:Channel {name:"Star"})
> RETURN DISTINCT channel.name <http://channel.name> AS channelName;MATCH
> (channel:Channel {name:"Sony"}) RETURN DISTINCT channel.name
> <http://channel.name> AS channelName;...*
> *so on*
>
> Please help me..
>
> -Sukaant Chaudhary
> <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/d/optout.
>



-- 
Javier de la Rosa
http://versae.es

-- 
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/d/optout.

Reply via email to