You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have query with several Counts nested in Select statement after GroupBy. Generated SQL does not have conditions in COUNT statement and returns wrong result
SELECTCOUNT(*) AS [A], COUNT(*) AS [B], COUNT(*) AS [C]
FROM [Products] AS [s]
WHERE (([s].[Date] >= @__Date_0)
GROUP BY [s].[ShiftId]
ORDER BY [s].[ShiftId]
Further technical details
EF Core version: v3.1.0-preview2
Database provider: Microsoft.EntityFrameworkCore.SqlServer
Target framework: NET Core 3.1
Operating system: Windows 10
IDE: Visual Studio 2019 16.3.8
The text was updated successfully, but these errors were encountered:
I have query with several Counts nested in Select statement after GroupBy. Generated SQL does not have conditions in COUNT statement and returns wrong result
Steps to reproduce
Fields A, B and C have same value in result.
Generated SQL
Further technical details
EF Core version: v3.1.0-preview2
Database provider: Microsoft.EntityFrameworkCore.SqlServer
Target framework: NET Core 3.1
Operating system: Windows 10
IDE: Visual Studio 2019 16.3.8
The text was updated successfully, but these errors were encountered: