Quantcast
Viewing all articles
Browse latest Browse all 2504

Threads.Text resulting in duplicate values in ROQL

Topic by Riya Goel

Content

Hi,

I am trying to search a string in Threads.Text as

SELECT ReferenceNumber from Incident Group By Threads.Text HAVING Threads.Text LIKE '%test%'

This query is giving the duplicate result (i.e. ReferenceNumber)

None of the below queries are working

1) SELECT DISTINCT  ReferenceNumber from Incident Group By Threads.Text HAVING Threads.Text LIKE '%test%'

     Error: near "DISTINCT": syntax error

2) SELECT COUNT(DISTINCT ReferenceNumber), ReferenceNumber from Incident Group By Threads.Text HAVING Threads.Text LIKE '%test%'

Output : This query is also giving duplicate results.

Can anyone let me know how to fix this issue.

Regards,

Riya Goel

 

Version

Feb 2017

Viewing all articles
Browse latest Browse all 2504

Trending Articles