Ciao al forum.

Vorrei cortesemente sapere perchè questa query + subQuery, eseguita su un DB MySQL, restituisce errore:

SELECT *, COUNT(IDCD) AS strIDCD ( SELECT COUNT(*) FROM myTable GROUP BY IDCD, DataReg ) FROM myTable GROUP BY IDCD, DataReg
Errore:

Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

[MySQL][ODBC 3.51 Driver][mysqld-5.0.45-community-nt]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM myTable GROUP BY IDCD, DataReg' at line 1

/pagina.asp, line 55
Grazie.