L'errore che mi dà è:codice:SELECT DISTINCT tblUtenti.ID, tblUtenti.Nome, tblUtenti.Avatar, tblUtenti.User, tblUtenti.VisiteTotali, (SELECT COUNT(ID) AS Quanti FROM tblOpere WHERE IDUtente = tblUtenti.ID) AS NumeroOpere FROM tblUtenti INNER JOIN tblOpere ON tblUtenti.ID = tblOpere.IDUtente WHERE IDCategoria = 4 OR IDCategoria = 5 OR IDCategoria = 6 OR IDCategoria = 42 OR IDCategoria = 43 OR IDCategoria = 44 ORDER BY NumeroOpere ASC
Microsoft OLE DB Provider for ODBC Drivers error '80040e07'
[Microsoft][Driver ODBC Microsoft Access] La proposizione ORDER BY (NumeroOpere) è in conflitto con DISTINCT.
Perchè sarebbe in conflitto? NumeroOpere non si tratta cmq di una colonna che posso utlizzare per riordinare?


Rispondi quotando