Hi all,
I have been working on a report recently which requires a SQL query to obtain the data from the database.
I have written the query, and tested and confirmed using Database Manager and I get the correct approximation of results.
Unfortunately, when I bring the query in to the report, the datasource shows many, many more results that Database Manager.
I believe this is due to the query utilising the DISTINCT clause.
In DBM, this works wonders and I get approximately 300 results which is expected.
However, in the report, the query brings back over 2000 records.
Previously, this wouldn't have been an issue if using Report Writer, however it is now obsolete.
I am converting my query to SWQL to see if this works, however it is taking longer than anticipated.
Is anyone else having this issue? Or does anyone know of a workaround for it?