Sounds like you need a count() based on the dateOfRegistration. In SQL Server, your query might look like this...
Code:
SELECT CONVERT(VARCHAR(20), dateField, 1), COUNT(*) FROM myTable GROUP BY CONVERT(VARCHAR(20), dateField, 1) WITH CUBE
Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook
I am getting an error: outputed sql statement:
SELECT CONVERT(VARCHAR(20), usersignedup, 1), COUNT(*) as cCount FROM users GROUP BY CONVERT(VARCHAR(20), usersignedup, 1) WITH CUBE
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[MySQL][ODBC 3.51 Driver][mysqld-4.0.20a-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 'VARCHAR(20), usersignedup, 1), COUNT(*) as cCount FROM users GR
'Note: Please note that if your IIS server and SQL server has a different region setting (which affects how dates are displayed), you will need to adjust for the format of vdDay1 and vdDay2.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.