Describe the bug
The following query return a null reference exception
To Reproduce
Query to reproduce the behavior:
SELECT statecode
FROM (
SELECT TOP 10 *
FROM incident
) AS SubQuery
GROUP BY statecode
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots

Environment (please complete the following information):
- SQL 4 CDS edition: XrmToolBox,
- Results of
SELECT @@VERSION:
Microsoft Dataverse - 9.2.25041.256
SQL 4 CDS - 9.6.1.0
mai 05 2025 10:06:05
Copyright © 2020 - 2025 Mark Carrington
Describe the bug
The following query return a null reference exception
To Reproduce
Query to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
Environment (please complete the following information):
SELECT @@VERSION:Microsoft Dataverse - 9.2.25041.256
SQL 4 CDS - 9.6.1.0
mai 05 2025 10:06:05
Copyright © 2020 - 2025 Mark Carrington