-
While it's normally fine to replace DISTINCT with GROUP BY when counting objects this results in a different resultset. The GROUP BY statement will have n rows with the count per grouped combination while the DISTINCT based query will have one row with the count of unique combinations. Use a COUNT(DISTINCT uid) to get the expected result. DISTINCT is supported on MySQL, PostgreSQL, Oracle and MSSQL Server. Change-Id: If3193113529f1bb01693dba39abccfe349f169b1 Resolves: #79330 Releases: master Reviewed-on: https://review.typo3.org/51320 Tested-by: TYPO3com <no-reply@typo3.com> Reviewed-by: Manuel Selbach <manuel_selbach@yahoo.de> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by: Benni Mack <benni@typo3.org> Tested-by: Benni Mack <benni@typo3.org>
728afa52