hhzyousafi
Registered User.
- Local time
- Today, 16:54
- Joined
- Nov 18, 2013
- Messages
- 74
I keep getting an error with the following query:
SELECT DISTINCT (AssignedTo) AS Expr1, (SELECT COUNT(DISTINCT (AssignedTo)) FROM tblTasks) AS Expr2
FROM tblTasks;
The error is "Undefined Function 'DISTINCT' in Expression". What am I doing wrong? The "References" are okay because the first "DISTINCT" in the query works; however the second one is giving me an error.
SELECT DISTINCT (AssignedTo) AS Expr1, (SELECT COUNT(DISTINCT (AssignedTo)) FROM tblTasks) AS Expr2
FROM tblTasks;
The error is "Undefined Function 'DISTINCT' in Expression". What am I doing wrong? The "References" are okay because the first "DISTINCT" in the query works; however the second one is giving me an error.