I have an table called TableA which has a column called date_entered which is of datetime type. I need to count the number of TableA rows that have been added on a given date.
To accomplish this I must CAST the datetime to a date and COUNT the number of rows that match the given date but i’m unsure how to write this query.
Any help would be much appreciated.
Thanks in advance
Use
to count all rows for that date even if the records contain
NULLvalues.Or use
count(specific_column)to count rows that don’t containNULLvalues for that column.