Support for COUNT(DISTINCT x) in Memgraph

Hi everyone,

I was wondering if Memgraph supports COUNT(DISTINCT x) and if not, when are you planning on implementing it?

Thanks!

2 Likes

Hey Alex,

COUNT(DINSTINCT x) can be rewritten by using WITH DISTINCT variable RETURN count(x)

Please have a look here : https://docs.memgraph.com/memgraph/reference-overview/differences

Let me know if anything is unclear.

Cheers!

2 Likes

That works! Thank you very much.

1 Like